#include<iostream> using namespace std; int main() { int hh , mm ; while(cin >> hh >> mm ){ if((((hh * 60 )+ mm) >= 450 ) && (((hh * 60 )+ mm) < 1020 )) cout << "At School" << endl ; else cout << "Off School" << endl ; } return 0; }