#include <iostream>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;
int main( int argc, char** argv )
{
long long int hh,mm;
while (cin >> hh >> mm)
{
if(hh<=7&&mm<30 || hh>=17&&mm>=30)
cout << "Off School" << endl ;
else if(hh>=7&&mm>=30 || hh<=17&&mm<30)
cout << "At School" << endl ;
}
return 0;
}