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