# -*- coding: utf-8 -*- numbers = list(map(int, input().split())) numbers_sum = 0 for n in numbers: numbers_sum += n print(55-numbers_sum)