bList = list(map(int, input().split())) bList.sort() for i in range(9): if bList[i] != i + 1: print(i+1) break