x,y=map(int,input().split()) if x==y: print(0) elif x==0 or y==0: ans=0 while x!=y: if 0<=x