h, m = map(int, input().split())

if m > 44 :
    print(h, m - 45)
elif m <= 44 and h >= 1:
    print(h - 1, m + 15)
else:
    print(23, m + 15)

x = int(input())
y = int(input())

if x > 0 and y > 0:
    print('1')
elif x < 0 and y > 0:
    print('2')
elif x < 0 and y < 0:
    print('3')
elif x > 0 and y < 0:
    print('4')

a = int(input())

if a % 4 == 0:
    if a % 100 != 0 or a % 400 == 0:
        print('1')
    else:
        print('0')
else:
    print('0')

s = int(input())

if s >= 90 :
    print('A')
elif s >= 80:
    print('B')
elif s >= 70:
    print('C')
elif s >= 60:
    print('D')
else:
    print('F')

+ Recent posts