i = input().split(" ") total = 0 for k in i: total += int(k) print(55 - int(total))