<image>

Input

The input contains two integers row, col (0 ≤ row, col ≤ 63), separated by a single space.

Output

Output "IN" or "OUT".

Examples

Input


0 0


Output


OUT


Input


27 0


Output


IN


Input


0 27


Output


OUT


Input


27 27


Output


IN
import java.util.Arrays;
import java.util.Scanner;
public class CodeJamProb3 
{
    static long[] masks =  { -274810798081L, -4398042316801L, -17592184995841L, -140737487437825L, -281474974810113L, -1125899905253377L, -2251799810007041L, -9007199251593217L, -18014398502140929L, -36020000919649793L, -71925652594360065L, -144080000570621825L, -143569809123049345L, -288089579951488961L, -574807056167469025L, -574455185510760385L, -1144934544502161297L, -2290431895028105017L, -2278117205420802025L, -2294372723447037833L, -4607322675759021869L, -4586141877912731621L, -9164754366030151343L, -9203457335136615969L, -9083056625318100671L, -9140196143716630147L, 104926523869364292L, 80646992874701271L, 23897912467521808L, 54520877445809015L, 30714995297747220L, 19269954620621278L, 134761335568203848L, 247840564634976618L, 80432037638439182L, 128634173610000800L, 26810559647187127L, 127719276168610708L, -9120774307151084811L, -9149414365272211363L, -9092626871043489535L, -9179602404407508547L, -4608659988396637977L, -4594128594970082765L, -2300565027428498553L, -2299650018302754561L, -2304576215437017049L, -1150739587607297649L, -575827039695666945L, -575510737443618401L, -288159879751794369L, -143868797952982913L, -144079979833982849L, -71934444895731457L, -35993605157944833L, -18014398503189505L, -9007199247398913L, -2251799810531329L, -1125899903680513L, -281474972975105L, -140737486651393L, -17592183947265L, -4398042316801L, -274810798081L };
    public static void main(String[] args) 
    {     //1330 B logic missing
        Scanner sc = new Scanner(System.in);
        int x = sc.nextInt();
        int y = sc.nextInt();
 
        if ((masks[y] & (1L << x)) != 0)
            System.out.println("OUT");
        else
            System.out.println("IN");
    }
}