import java.util.Scanner;
public class JAVA
{
public static void main(String args[])
{
Scanner time=new Scanner(System.in);
int a,b;
while(time.hasNext())
{
a=time.nextInt();
b=time.nextInt();
if(a>=17||a==7&&b<30||a<7){
System.out.println("Off School");
}else{
System.out.println("At School");
}
}
}