Arno's Sleep Schedule | 프로그래밍의 벗 PivotOJ
PivotOJ

Arno's Sleep Schedule

시간 제한: 1000ms메모리 제한: 1024MB출처: EIO 2021-22 prelimBOJ 29863

문제

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 2020 to 2323 or in the range from 00 to 33: the time at which Arno goes to sleep. The second line contains an integer in the range from 55 to 1010: 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 2424 hours in a row.

NB! The output may not contain any other words or symbols (i.e. the output should contain exactly one integer).

예제

예제 1

입력
23
7
출력
8
코드를 제출하려면 로그인하세요.