#include "bits/stdc++.h" using namespace std; void solve(void) { int n, k; cout << max(0, n-k+1) << endl; } int main() { solve(); //cout << "yui(*-v・)yui" << endl; return 0; }