x = input()
hh = int(x[:2])
mm = int(x[3:])
if (hh == 7 and mm >=30) or (8<= hh <= 16):
print("At School")
else:
print("Off School")
x = input()
hh = int(x[:2])
mm = int(x[3:])
if (hh == 7 and mm >=30) or (8<= hh <= 16) or (hh ==7 and mm =00):
print("At School")
else:
print("Off School")
x = input()
hh = int(x[:2])
mm = int(x[3:])
if (hh == 7 and mm >=30) or (8<= hh <= 16):
print("At School")
else:
print("Off School")
這樣測試3是錯的x = input()
hh = int(x[:2])
mm = int(x[3:])
if (hh == 7 and mm >=30) or (8<= hh <= 16) or (hh ==7 and mm == 00):
print("At School")
else:
print("Off School")
這樣測試3是對的