Page not loading? Try clicking here.
Placeholder

#6304

총 몇 분 1s 1024MB

Problems

H시간 M분이 총 몇 분인지 출력하는 프로그램을 작성하시오.


Input

입력은 다음 형식으로 제공된다.

H

M

  • 0 \le H \le 23

  • 0 \le M \le 59

  • H,M은 정수다.


Output

H시간 M분이 총 몇 분인지 출력한다.


Example #1

8
30
510

Example #2

14
0
840

Example #3

0
29
29

Example #4

23
59
1439

Source

JOI 2024 예선

You must sign in to write code.