a,b=map(int,input().split()) t=(1<<64)-1;exec('x,y,a=a^a<<23&t,b,b;b=x^y^x>>17^y>>26;print(b+y&t);'*100)