from datetime import datetime as dt
while True:
try:
x = input().strip('\r')
test = dt.strptime(x, "%H %M")
s = dt.strptime("07 30", "%H %M")
e = dt.strptime("17 00", "%H %M")
if s <= test and test < e:
print('At School')
else:
print('Off School')
except EOFError:
break
就這樣