import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines B = set(map(int,read().split())) se = set(range(1,11)) se -= B answer = se.pop() print(answer)