def add_and_subtract(a, b, c):
    sum_numbers = a + b
    result = sum_numbers - c
    return result


number_1 = int(input())
number_2 = int(input())
number_3 = int(input())
print(add_and_subtract(number_1, number_2, number_3))
