import 'dart:io';
 
void main() {
    List<int> nnk = stdin.readLineSync().split(" ").map((x) => int.parse(x)).toList();
    int d = int.parse(stdin.readLineSync());
    nnk[0] -= d;
    print(nnk[0]);
}