num_list = list(map(int, input().split())) print(55 - sum(num_list))