import std.stdio;
import std.ascii;
import std.conv;
import std.string;
import std.algorithm;
import std.range;
import std.functional;
import std.math;
import core.bitop;
import std.numeric;

void main()
{
    auto ab = readln.split.to!(long[]);
    (ab[0] - ab[1] + 1).writeln;
}
