import strutils proc nextString: string = result = "" while not endOfFile stdin: let c = readChar stdin if c == ' ' or c == "\n"[0]: return elif c != '\r': add result, c proc nextInt: int = parseInt nextString() let a, b = nextInt() if a < b: echo "YES" echo 0 else: echo "NO" echo a - b + 1