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