B = list(map(int, input().split())) ans = sum(range(1, 11)) - sum(B) print(ans)