
2753번
# -*- coding: cp949 -*-
year = int(input())
if (year % 4 == 0 and year % 100 != 0) or (year % 400 == 0):
print(1)
else:
print(0)
9498번
score = int(input())
if score >= 90:
print("A")
elif score >= 80:
print("B")
elif score >= 70:
print("C")
elif score >= 60:
print("D")
else:
print("F")
14681번
x = int(input())
y = int(input())
if x > 0 and y > 0:
print("1")
if x < 0 and y > 0:
print("2")
if x > 0 and y < 0:
print("4")
if x < 0 and y < 0:
print("3")
2480번
import random
x,y,z = map(int,input().split())
if x == y and y == z:
print(10000 + x*1000)
elif y == z or z == x or x == y:
if x == y:
print(1000 + x*100)
elif y == z:
print(1000 + y*100)
else:
print(1000 + x*100)
else:
max = max(x,y,z)
print(max*100)
2525번
hour, minute = map(int, input().split())
cook = int(input())
# 정수 나눗셈으로 시간과 분을 나눔
cook_hour = cook // 60
cook_min = cook % 60
# 현재 시간과 요리 시간을 더함
total_hour = hour + cook_hour
total_minute = minute + cook_min
# 분이 60 이상일 때 시간으로 반영
if total_minute >= 60:
total_hour += total_minute // 60
total_minute = total_minute % 60
# 24시간 형식으로 시간 조정
total_hour = total_hour % 24
print("%d %d" % (total_hour, total_minute))