# A B の値を文字列で受け取る a, b = gets(chomp: true).split boys = a.to_i + 1 girls = b.to_i if boys <= girls puts "YES" else puts "NO" end puts (boys - girls).abs