l = raw_input().split() t = 1 for hoge in l: if t != int(hoge): print(str(t)) break l = l + 1