l=lambda:map(int,raw_input().split()) def isprime(n): if n==2:return True if n<2 or n&1==0:return False for i in xrange(3,int(n**0.5)+2,2): if n%i==0: return False return True n=l()[0] print["YES","NO"][isprime(n)] exit() if n!=2 and n%2==0: print"YES" exit() for i in xrange(2,n): if isprime(i): continue if n%i==0: print"YES" break else: print"NO"