| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 1024 MB | 4790 | 2904 | 2787 | 60.825% |
Arno wants to arrive at school before the start of classes. He sets an alarm clock to ring in the morning. Now he's curious how many hours of sleep he will get. Write a program that would calculate the length of Arno's sleep time.
There are two lines in the input, containing one number each. The first line contains an integer in the range from 20ドル$ to 23ドル$ or in the range from 0ドル$ to 3ドル$: the time at which Arno goes to sleep. The second line contains an integer in the range from 5ドル$ to 10ドル$: the time for which Arno set his alarm to ring and wake him up. All times are given as integer numbers and in the 24-hour format.
Output a single integer: the number of hours from the time when Arno goes to sleep to the time when he wakes up. You may assume that Arno sleeps from the time of going to sleep to the time of the alarm without waking up and that he does not sleep for more than 24ドル$ hours in a row.
NB! The output may not contain any other words or symbols (i.e. the output should contain exactly one integer).
23 7
8