#include<bits/stdc++.h>using namespace std;int main(){ int h,m,t; cin>>h>>m; t=h*60+m; (t>=450 and t<1020) ? cout<<"At School" : cout<<"Off School"; return 0;}