package Main;
import java.io.*;
import java.util.*;
public class Main
{
public static void main(String args[])
{
Scanner in=new Scanner(System.in);
while(in.hasNext())
{
int a=in.nextInt();
int b=in.nextInt();
if(a==0&&b==0)
{
break;
}
else
{
int flag=0;
int temp;
for(int i=a;i<=b;i++)
{
temp=(i*i)+i+41;
for(int n=2;nif(temp%2==0)
{
flag++;
}
}
}
if(flag==0)
{
System.out.println("OK");
}
else
{
System.out.println("Sorry");
}
}
}
}
}