#include <iostream>
#include <cstdlib>
#include <iomanip>
#include <math.h>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
if(a*60+b>=450 && a*60+b<1020)
cout<<"At School";
else
cout<<"Off School";
//system("pause");
return 0;
}