x,y=map(int,raw_input().split()) exec"m=2**64-1;x^=x<<23&m;x,y=y,x^y^x>>17^y>>26;print x+y&m;"*100