fork download
  1. import sys
  2. x=int(input())
  3. y=int(input())
  4. x-=1
  5. y-=1
  6. print(x^y)
Success #stdin #stdout 0.02s 5752KB
stdin
2
5
stdout
5