"use strict";
const Main = (input) =>{
   let xs = input.trim().split(' ');
   let a = xs[0] - xs[1];
   let ans = xs[2] - a;
   console.log(ans);

}
Main(require('fs').readFileSync('/dev/stdin','utf8'));