read a b && cat <<__EOF__ | bc if ($a < $b) "YES" else "NO" print "\n" d = $a + 1 - $b if (d < 0) -d else d __EOF__