l = map(int, input().split()) sum = 0 for cal in l: sum += cal print(55 - sum)