def sum_number(num1, num2, num3):
    sum_of_numbers = number_1 + number_2
    subtract = sum_of_numbers - number_3
    return subtract


number_1 = int(input())
number_2 = int(input())
number_3 = int(input())

print(sum_number(number_1, number_2, number_3))