#include <iostream>
using namespace std;
int main(){
int h,m;
cin>>h>>m;
if((h>=17)||(h<7))
cout<<"Off School"<<endl;
else if((h=7)&&(m<30))
else
cout<<"At School"<<endl;
return 0;
}
h=7改成h==7