const [A, B] = require('fs') .readFileSync('/dev/stdin', 'utf8') .split(/\s/) .map(v => +v); const remain = (A + 1) - B; console.log(remain <= 0 ? `YES` : 'NO'); console.log(Math.abs(remain));