require 'prime' puts gets.to_i.prime_division.map{|p,n|[p]*n}.flatten.size>1? 'YES':'NO'