#include<bits/stdc++.h>using namespace std;int main(){ int hh,mm; cin>>hh>>mm; int t=hh*60+mm; if(hh>=17 || hh<7 || hh==7 && mm<30) { cout<<"Off School"<<"\n"; } else { cout<<"At School"<<"\n"; }}