# input x = input().split() s = 0 for i in x: s += int(i) print(55-s)