import sys input=lambda: sys.stdin.readline().rstrip() print(55-sum([int(i) for i in input().split()]))