ans=11 for x in map(int,input().split()): ans ^= x print(ans)