#include #include #include #include using namespace std; int main(){ int K, N, F; cin >> K >> N >> F; K*= N; for(int i=0; i> N; K -= N; } cout << K << endl; }