# coding: utf-8 # Here your code ! x=[int(i) for i in input().split()] print(55 - sum(x))