import java.io.*; import java.util.*; import java.math.*; public class Main{ static BigInteger zero = BigInteger.ZERO; public static void main(String[] args){ Scanner cin = new Scanner(System.in); BigInteger n; while(cin.hasNext()){ n = cin.nextBigInteger(); boolean ok = false; if(n.mod(BigInteger.valueOf(2)).compareTo(zero)==0||n.mod(BigInteger.valueOf(3)).compareTo(zero)==0||n.mod(BigInteger.valueOf(5)).compareTo(zero)==0) ok = true; if(ok) System.out.println("YES"); else System.out.println("NO"); } } }