man, woman = gets.chomp!.split(' ').map(&:to_i) puts (woman > man) ? 'YES':'NO' if woman > man puts woman - man else puts (man+1) - woman end