100 #ABC228A. [ABC228A] On and Off

[ABC228A] On and Off

Score : 100100 points

Problem Statement

Takahashi turns on the light of his room at SS o'clock (on the 2424-hour clock) every day and turns it off at TT o'clock every day. The date may change while the light is on.

Determine whether the light is on at 3030 minutes past XX o'clock.

Constraints

  • 0S,T,X230 \leq S, T, X \leq 23
  • STS \neq T
  • All values in input are integers.

Input

Input is given from Standard Input in the following format:

SS TT XX

Output

If the light is on at 3030 minutes past XX o'clock, print Yes; otherwise, print No.

7 20 12
Yes

The light is on between 77 o'clock and 2020 o'clock. At 3030 minutes past 1212 o'clock, it is on, so we print Yes.

20 7 12
No

The light is on between 00 o'clock and 77 o'clock, and between 2020 o'clock and 00 o'clock (on the next day). At 3030 minutes past 1212 o'clock, it is off, so we print No.

23 0 23
Yes