# 读取输入时间hour, minute = map(int, input().split())
# 判断当前时间是否在学校时间范围内if (hour < 7) or (hour == 7 and minute < 30) or (hour >= 17): print("Off School")else: print("At School")