Given a statement about date and time, state whether the statement is true or false. The number of date/time operands in the statement ranges between 2 and 3. Let's say the values are denoted by t1, t2 and t3. The statements follow one of the following ten templates: 't1 occurs before t2, t1 doesn't occur before t2, t1 occurs after t2, t1 doesn't occur after t2, t1 occurs between t2 and t3, t1 doesn't occur between t2 and t3, t1 occured before t2 but after t3, t1 occured after t2 but before t3, t1 didn't occur before t2 but after t3, t1 didn't occur after t2 but before t3'. The output should be either 'True' or 'False'.

Ex Input:
10:37:22 PM occured before 01:34:40 PM but after 06:03:50 PM

Ex Output:
False


Ex Input:
10:36:32 AM occured before 11:41:22 AM but after 6:58:02 PM

Ex Output:
False


Ex Input:
20:29:51 occured after 08:30:33 AM but before 4:05:21 AM

Ex Output:

True