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