a,b=map(int,input().split()) ans=0 for _ in range(2): for i in range(33): x=1<