f = input() s_f = f.split() int_f = [int(v) for v in s_f] a = sum(int_f) b = 55 - a print(b)