import sysx=int(input())y=int(input())x-=1y-=1print(x^y)
3 3
0
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!