A = input().split() ALL = [int(s) for s in A] print(55 - sum(ALL))