#include <iostream>using namespace std;
#include <iostream>
using namespace std;
int main(){ int a, b; while(cin>>a>>b){ int n = a*100+b; //convert time to int if( (n>=730) && (n<1700)) cout<<"At School"<<endl; else cout<<"Off School"<<endl; }
int main(){
int a, b;
while(cin>>a>>b){
int n = a*100+b; //convert time to int
if( (n>=730) && (n<1700)) cout<<"At School"<<endl;
else cout<<"Off School"<<endl;
}
return 0;}
return 0;