def add_substract(num1, num2, num3):
    result = (num1 + num2) - num3
    return result


numb_1 = int(input())
numb_2 = int(input())
numb_3 = int(input())
print(add_substract(numb_1, numb_2, numb_3))
