a = set(map(str, range(1,11))) b = set(input().split()) print(a.difference(b).pop())