#!/usr/bin/env ruby # -*- coding: utf-8 -*- require "prime" def judge(n) if n <= 1 return false else return n.to_i.prime_division.map {|f, e| e}.inject(:+) > 2 end end puts judge(gets.to_i) ? "YES" : "NO"