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