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