import std.stdio, std.conv, std.string, std.bigint; import std.math, std.random, std.datetime; import std.array, std.range, std.algorithm, std.container, std.format; string read(){ static string[] ss; while(!ss.length) ss = readln.chomp.split; string res = ss[0]; ss.popFront; return res; } void main(){ int a = read.to!int; int b = read.to!int; auto ans = "NO"; if(a < b) ans = "YES"; ans.writeln; if(a >= b) (a + 1 - b).writeln; else (b - a - 1).writeln; }