x,y=map(int,raw_input().split()) exec'x^=x%2**41<<23;x,y=y,y^x^x>>17^y>>26;print~2**64&x+y;'*100