hh, mm = input().split()
hh, mm = int(hh), int(mm)
x = hh * 60 + mm
if 7*60+30 <= x < 17*60+0:
print('At School')
else:
print('Off School')