#include <bits/stdc++.h> using namespace std; int main() { long long L, R; cin >> L >> R; cout << R - L + 1 << endl; return 0; }