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