import sys sys.setrecursionlimit(10 ** 6) def main(): a = list(map(int, input().split())) print(55-sum(a)) main()