import sys def resolve(in_): B = set(map(int, next(in_).split())) A = set(range(1, 11)) ans = A - B return ans.pop() def main(): ans = resolve(sys.stdin) print(ans) if __name__ == '__main__': main()