a=gets.to_i b=gets.to_i if (b%a == 0) puts "b/a" else puts "NO" end