# A B の値を文字列で受け取る a, b = gets(chomp: true).split c = (a.to_i+1) - b.to_i puts c <= 0 ? "YES" : "NO" puts c