n = int(input()) nums = sum(map(int, input().split())) print(55 - nums)