require 'prime' puts gets.to_i.prime_division.inject(0){|s,e|s+e[1]}>1 ? "YES" : "NO"