require 'prime' n = gets.to_i if n === 1 puts "NO" exit end puts Prime.prime?(n) ? "NO" : "YES"