p,c=map(int,input().split()) def dfs(cnt,now): if cnt==p+c: return now tmp=0 if cnt