Write a program that determines whether the date-time pairs belong to the specified time range (including the earlier date-time and excluding the later) and counts the number of such dates. The number of date-time pairs to process N should be specified by the user. Each pair has the year-month-dayThour:minute format.
If the borders of the range are equal and a date-time is equal to them, such date-time is not considered as belonging to the range.
Input data format
The first line contains a border of the range (either earlier or later). The second line contains the other border of the range. The third line contains an integer number N: a number of date-time pairs. The following N lines consist of date-time pairs.
Output data format
The program must output an integer number: the count of date-time pairs belonging to the given range.