ten=["1","2","3","4","5","6","7","8","9","10"] input=input().split() input.append(0) for i in range(10): if ten[i] != input[i]: print(ten[i]) break