hh,mm=map(int,input().split()) currnt_time=hh*60+mm school_start=7*60+30 school_end=17*60if school_start<=currnt_time< school_end: # 判斷現在是否在上學時間內 print("At School")else: print("Off School")