There is a cat, cat likes to sleep. If he sleeps, he sleeps continuously no less than A hours. For some strange reason, the cat can not stay awake continuously more than B hours. The cat is lazy, it could sleep all the time, but sometimes interesting events occur(such as cat food, TV show, etc) . The cat loves these events very much. So, Please help the cat plan their day so as not to miss any interesting events. Every day the cat wants to live on the same schedule.
The first line of the input file contains two integers A and B (1 <= A, B <= 24). The second line of the input file contains the number n, the number of interesting events (1 <= n <= 20). Following n rows describe the interesting events. Each event is described line of the form hh:mm-hh:mm, which specifies the time period during which it occurs. Time varies from 00:00 to 23:59. No two interesting events will overlap. If the event is completed earlier than the beginning, This means that it captures midnight. The event is considered to be occupying the whole minute, when it begins and the moment when it ends (event 12:00-13:59 lasted exactly 120 minutes). Start time and time end of the event are different.
If the cat can organize their day so that during all the interesting events not sleep, print to output file Yes.
On the second line Bring k - how many times a day cat should go to bed. In the following k rows Bring out the intervals in which the cat sleeps in the same format, in which interesting events are set in the input file. If making a few, display any.
If the cat can not organize their day desired way, print to the output file No.