{"problem":{"name":"On and Off","description":{"content":"Takahashi turns on the light of his room at $S$ o'clock (on the $24$\\-hour clock) every day and turns it off at $T$ o'clock every day.   The date may change while the light is on. Determine whether th","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc228_a"},"statements":[{"statement_type":"Markdown","content":"Takahashi turns on the light of his room at $S$ o'clock (on the $24$\\-hour clock) every day and turns it off at $T$ o'clock every day.  \nThe date may change while the light is on.\nDetermine whether the light is on at $30$ minutes past $X$ o'clock.\n\n## Constraints\n\n*   $0 \\leq S, T, X \\leq 23$\n*   $S \\neq T$\n*   All values in input are integers.\n\n## Input\n\nInput is given from Standard Input in the following format:\n\n$S$ $T$ $X$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc228_a","tags":[],"sample_group":[["7 20 12","Yes\n\nThe light is on between $7$ o'clock and $20$ o'clock. At $30$ minutes past $12$ o'clock, it is on, so we print `Yes`."],["20 7 12","No\n\nThe light is on between $0$ o'clock and $7$ o'clock, and between $20$ o'clock and $0$ o'clock (on the next day). At $30$ minutes past $12$ o'clock, it is off, so we print `No`."],["23 0 23","Yes"]],"created_at":"2026-03-03 11:01:14"}}