InputThe input contains a single integer $$$a$$$ ($$$1 \le a \le 99$$$).OutputOutput "YES" or "NO".ExamplesInput
5
Output
YES
Input
13
Output
NO
Input
24
Output
NO
Input
46
Output
YES

The input contains a single integer $$$a$$$ ($$$1 \le a \le 99$$$).

import java.util.*;

/*
    User: Ayushi
    Time: 16:24
    Date: 01 Apr 2019
    Website: Codeforces
    Problem: B
*/

public class B {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        scan.close();

        if (n % 10 == 1 || n % 10 == 7 || n % 10 == 9 || (n >= 9 && n <= 11) || (n >= 13 && n <= 29) || (n >= 69 && n <= 79) || (n >= 89 && n <= 99))  {
            System.out.println("NO");
        }
        else {
            System.out.println("YES");
        }
    }
}

import java.util.Arrays;
import java.util.List;
import java.util.Scanner;

public class cAPSlOCK {

    public static void main(String[] args) {
        Scanner d = new Scanner(System.in);
        int ds=d.nextInt();
        Integer mass[] = {2, 3, 4, 5, 6, 8, 12, 30, 32, 33, 34, 35, 36, 38, 40, 42, 43, 44, 45, 46, 48, 50, 52, 53, 54, 55, 56, 58, 60, 62, 63, 64, 65, 66, 68, 80, 82, 83, 84, 85, 86, 88};
        List<Integer> a = Arrays.asList(mass);
        if(a.contains(ds)){ System.out.println("YES");}else{ System.out.println("NO");}
    }

}

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int input = scanner.nextInt();
        boolean flag = false;
        int[] invalid = { 1, 7, 9, 10, 11, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 31, 37,
                39, 41, 47, 49, 51, 57, 59, 61, 67, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 81, 87, 89, 90, 91, 92,
                93, 94, 95, 96, 97, 98, 99 };
        for (int i = 0; i < invalid.length; i++) {
            if (input == invalid[i]) {
                flag = true;
            }
        }
        if (flag) {
            System.out.println("NO");
        } else {
            System.out.println("YES");
        }
    }
}

import java.util.Scanner;

public class Solve {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner in = new Scanner(System.in);

		int a = in.nextInt();

		if(a == 10 ||
		  (a > 12 && a <= 19) ||
		   a/10 == 2 ||
		   a/10 == 7 ||
		   a/10 == 9 ||
		   a%10 == 7 ||
		   a%10 == 9 ||
		   a%10 == 1
				) System.out.print("NO");
		else System.out.print("YES");

		in.close();
	}

}

import java.util.Scanner;
public class Kanban_Numbers {
    public static void main(String[] args)
    {
        Scanner input=new Scanner(System.in);
        int num,a,b;
        num=input.nextInt();

        b= num % 10;
        a= num / 10;

if(b == 1||b == 7||b == 9||a == 1 && b!=2 || a==2 || a==7 || a==9){

       // if( num > 0){
            System.out.println("NO");
        }

       else{
            System.out.println("YES");
        }
    }
}

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class KanbanNumbers {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n  = sc.nextInt();
        Map<Integer, String> mapa = new HashMap<>();
        mapa.put(1, "one");
        mapa.put(2, "two");
        mapa.put(3, "three");
        mapa.put(4, "four");
        mapa.put(5, "five");
        mapa.put(6, "six");
        mapa.put(7, "seven");
        mapa.put(8, "eight");
        mapa.put(9, "nine");

        if(n==70 || n==90) System.out.println("NO");

        if(n==12) System.out.println("YES");
        if(n<10 || n%10==0){
            if(n%10==0 && n!=20) n /= 10;
            if(n == 20 || mapa.get(n).contains("n")){
                System.out.println("NO");
            }else{
                System.out.println("YES");
            }
        }
        if((n>29 && n < 70) || (n>=80 && n<90)){
            if(mapa.get(n%10).contains("n")){
                System.out.println("NO");
            }else{
                System.out.println("YES");
            }
        }
        if((n>10 && n<=29 && n!=12 && n!=20) || (n>=70 && n< 80) || n>90){
            System.out.println("NO");
        }

    }
}

import java.util.*;
import java.lang.*;
import java.io.*;
public class Main{
    public static void main (String[] args) throws java.lang.Exception
	{
		Scanner sc =new Scanner(System.in);
		int a =sc.nextInt();
		if(a%10!=1&&a/10!=1&&a%10!=7&&a/10!=7&&a%10!=9&&a/10!=9&&a/10!=2 || a==12)
		System.out.println("YES");
		else
		System.out.println("NO");
	}
}

import java.io.*;
import java.math.*;
import java.security.*;
import java.text.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.function.*;
import java.util.regex.*;
import java.util.stream.*;
public class KanbanNumbers{//PRACTICE
    public static void main(String args[]){
        FastScanner sc=new FastScanner(System.in);
        int a[]=new int[]{1, 7, 9, 10, 11, 13, 14, 15, 16, 17, 18, 19, 20, 21,
         22, 23, 24, 25, 26, 27, 28, 29, 31, 37, 39, 41, 47, 49, 51, 57, 59, 61,
         67, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 81, 87, 89, 90, 91, 92,
         93, 94, 95, 96, 97, 98, 99};
        HashSet<Integer> set=new HashSet<>();
        for(int i=0;i<a.length;i++){
            set.add(a[i]);
        }
        int n=sc.nextInt();
        if(set.contains(n)){
            System.out.println("NO");
        }
        else{
            System.out.println("YES");
        }
    }
    static class FastScanner {
        BufferedReader br;
        StringTokenizer st;

        FastScanner(InputStream stream) {
            try {
                br = new BufferedReader(new
                    InputStreamReader(stream));
            } catch (Exception e) {
                e.printStackTrace();
            }
        }

        String next() {
            while (st == null || !st.hasMoreTokens()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        String nextLine() {
            String str = "";
            try
            {
                str = br.readLine();
            }
            catch (IOException e)
            {
                e.printStackTrace();
            }
            return str;
        }

        int nextInt() {
            return Integer.parseInt(next());
        }
        long nextLong() {
            return Long.parseLong(next());
        }
    }
}

import java.util.Scanner;

public class KanbanNum {
	public static void main(String[] args) {
		int[] a = { 2, 3, 4, 5, 12, 30, 35, 43, 46, 52, 64, 86 };
		Scanner sc = new Scanner(System.in);
		int num = sc.nextInt();
		boolean flag = false;
		for (int i = 0; i <= 11; i++) {
			if (a[i] == num) {
				System.out.println("YES");
				flag = true;
				break;
			}
		}
		if (!flag) {
			System.out.println("NO");
		}

	}

}

import java.util.Scanner;

public class KN {
    public static void main(String... args) {
        Scanner sc = new Scanner(System.in);
        int number = sc.nextInt();

        int f_dig = number / 10;
        int s_dig = number % 10;

        if (number == 10 || number == 11 || (number >= 13 && number <= 19)) {
            System.out.println("NO");
            System.exit(0);
        }

        if (f_dig == 2 || f_dig == 7 || f_dig == 9) {
            System.out.println("NO");
            System.exit(0);
        }

        if (s_dig == 1 || s_dig == 7 || s_dig == 9) {
            System.out.println("NO");
            System.exit(0);
        }

        System.out.println("YES");
    }
}

//package April2019;

import java.util.Random;
import java.util.Scanner;

public class mainB {
    private static Scanner enter = new Scanner(System.in);
    private static Random random = new Random();
    public static void main(String[] args) {

        int mass[] ={2,3,4,5,6,8,12,30,32,33,34,35,36,38,40,42,43,44,45,46,48,50,52,53,54,55,56,58,60,62,63,64,65,66,68,80,82,83,84,85,86,88};
        int a=enter.nextInt();
        for (int i = 0; i <mass.length ; i++) {
            if(mass[i]==a) {
                System.out.println("YES");
                return;
            }
        }
        System.out.println("NO");
    }
}

import java.util.Scanner;

public class CodeForces1April2019B {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        System.out.println(getNumber(a).contains("N") ? "NO" : "YES");
    }

    private static String getNumber(int i) {
        if (i < 21) {
            switch (i) {
                case 1:
                    return "ONE";
                case 2:
                    return "TWO";
                case 3:
                    return "THREE";
                case 4:
                    return "FOUR";
                case 5:
                    return "FIVE";
                case 6:
                    return "SIX";
                case 7:
                    return "SEVEN";
                case 8:
                    return "EIGHT";
                case 9:
                    return "NINE";
                case 10:
                    return "TEN";
                case 11:
                    return "ELEVEN";
                case 12:
                    return "TWELVE";
                case 13:
                    return "THIRTEEN";
                case 14:
                    return "FOURTEEN";
                case 15:
                    return "FIFTEEN";
                case 16:
                    return "SIXTEEN";
                case 17:
                    return "SEVENTEEN";
                case 18:
                    return "EIGHTEEN";
                case 19:
                    return "NINETEEN";
                case 20:
                    return "TWENTY";
            }
        } else if (i < 100) {
            if (i % 10 == 0) {
                switch (i) {
                    case 30:
                        return "THIRTY";
                    case 40:
                        return "FORTY";
                    case 50:
                        return "FIFTY";
                    case 60:
                        return "SIXTY";
                    case 70:
                        return "SEVENTY";
                    case 80:
                        return "EIGHTY";
                    case 90:
                        return "NINETY";
                }
            } else {
                return getNumber(i / 10 * 10) + " " + getNumber(i % 10);
            }
        }
        return "HUNDRED";
    }

}

import java.util.*;

public class Solution {

	public static void main(String[] args) {
		int n;
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		int a = n%10;
		int b = n/10;
		if(a==1||a==7||a==9||b==1&&a!=2||b==2||b==7||b==9)
			System.out.print("No");
		else
			System.out.println("Yes");
sc.close();
	}

}

import java.io.*;
import java.util.StringTokenizer;

public class aaa {
    FastScanner in;
    PrintWriter out;
    boolean systemIO = true;

    void solve() {
        int n = in.nextInt();
        if(n==2||n==3||n==4||n==5||n==12||n==46||n==23||n==30||n==35||n==43||n==52||n==64||n==86){
            System.out.println("YES");
        }else{
            System.out.println("NO");
        }
    }

    private void run() throws IOException {
        if (systemIO) {
            in = new aaa.FastScanner(System.in);
            out = new PrintWriter(System.out);
        } else {
            in = new aaa.FastScanner(new File("h.in"));
            out = new PrintWriter(new File("h.out"));
        }
        solve();

        out.close();
    }

    class FastScanner {
        BufferedReader br;
        StringTokenizer st;

        FastScanner(File f) {
            try {
                br = new BufferedReader(new FileReader(f));
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            }
        }

        FastScanner(InputStream f) {
            br = new BufferedReader(new InputStreamReader(f));
        }

        String nextLine() {
            try {
                return br.readLine();
            } catch (IOException e) {
                return null;
            }
        }

        String next() {
            while (st == null || !st.hasMoreTokens()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

    }

    public static void main(String[] arg) throws IOException {
        new aaa().run();
    }

}

import java.util.Scanner;

public class KanbanNumbers
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);

		int test  = sc.nextInt();

		int places = 0;

		String[] once = {"","One","Two","Three","Four","Five","Six","Seven","Eight","Nine"};

		String[] str = {"","One","Two","Three","Four","Five","Six","Seven","Eight","Nine","Ten","Eleven","Twelve","Thirteen","Forteen",
							"Fifteen","Sixteen","Seventeen","Eighteen","Nineteen","Twenty"};

		String[] twice = {"","Ten","Twenty","Thirty","Forty","Fifty","Sixty","Seventy","Eighty","Ninety"};

		String answer = "";

		if(test <= 20)
		{
			answer = str[test];
		}
		else
		{
			while(test > 0)
			{
				places++;

				int val = test%10;
				test	= test/10;

				if(places == 1)
				{
					answer = once[val]+" "+answer;
				}
				else
				{
					answer = twice[val]+" "+answer;
				}
			}
		}

		answer = answer.toLowerCase();

		if(answer.contains("k") || answer.contains("a") || answer.contains("n"))
		{
			System.out.println("NO");
		}
		else
		{
			System.out.println("YES");
		}

	}

}

import java.util.*;
import java.io.*;
import java.text.*;
import java.math.*;
import static java.lang.Integer.*;
import static java.lang.Double.*;
import java.lang.Math.*;

public class kanban_numbers {

	public static void main(String[] args) throws Exception {
		new kanban_numbers().run();
	}

	public void run() throws Exception {
		FastIO file = new FastIO();
		int n = file.nextInt();
		String[] a = "zero one two three four five six seven eight nine ten eleven twelve thirteen fourteen fifteen sixteen seventeen eighteen nineteen twenty twentyone twentytwo twentythree twentyfour twentyfive twentysix twentyseven twentyeight twentynine thirty thirtyone thirtytwo thirtythree thirtyfour thirtyfive thirtysix thirtyseven thirtyeight thirtynine forty fortyone fortytwo fortythree fortyfour fortyfive fortysix fortyseven fortyeight fortynine fifty fiftyone fiftytwo fiftythree fiftyfour fiftyfive fiftysix fiftyseven fiftyeight fiftynine sixty sixtyone sixtytwo sixtythree sixtyfour sixtyfive sixtysix sixtyseven sixtyeight sixtynine seventy seventyone seventwo seventythree seventyfour seventyfive seventysix seventyseven seventyeight seventynine eighty eightyone eightytwo eightythree eightyfour eightyfive eightysix eightyseven eightyeight eightynine ninety ninetyone ninetytwo ninetythree ninetyfour ninetyfive ninetysix ninetyseven ninetyeight ninetynine".split(" ");
		String s = a[n];
		if (s.contains("k") || s.contains("a") || s.contains("n")) {
			System.out.println("NO");
		}
		else {
			System.out.println("YES");
		}
	}

	public static class FastIO {
		BufferedReader br;
		StringTokenizer st;

		public FastIO() {
			br = new BufferedReader(new InputStreamReader(System.in));
		}

		String next() {
			while (st == null || !st.hasMoreElements()) {
				try {
					st = new StringTokenizer(br.readLine());
				} catch (IOException e) {
					e.printStackTrace();
				}
			}
			return st.nextToken();
		}

		int nextInt() {
			return Integer.parseInt(next());
		}

		long nextLong() {
			return Long.parseLong(next());
		}

		double nextDouble() {
			return Double.parseDouble(next());
		}

		String nextLine() {
			String str = "";
			try {
				str = br.readLine();
			} catch (IOException e) {
				e.printStackTrace();
			}
			return str;
		}
	}

	public static long pow(long n, long p, long mod) {
		if (p == 0)
			return 1;
		if (p == 1)
			return n % mod;
		if (p % 2 == 0) {
			long temp = pow(n, p / 2, mod);
			return (temp * temp) % mod;
		} else {
			long temp = pow(n, p / 2, mod);
			temp = (temp * temp) % mod;
			return (temp * n) % mod;

		}
	}

	public static long pow(long n, long p) {
		if (p == 0)
			return 1;
		if (p == 1)
			return n;
		if (p % 2 == 0) {
			long temp = pow(n, p / 2);
			return (temp * temp);
		} else {
			long temp = pow(n, p / 2);
			temp = (temp * temp);
			return (temp * n);

		}
	}

	public static long gcd(long x, long y) {
		if (x == 0)
			return y;
		else
			return gcd(y % x, x);
	}

	public static boolean isPrime(int n) {
		if (n <= 1)
			return false;
		if (n <= 3)
			return true;

		if (n % 2 == 0 || n % 3 == 0)
			return false;

		for (int i = 5; i * i <= n; i = i + 6)
			if (n % i == 0 || n % (i + 2) == 0)
				return false;

		return true;
	}
}

import java.io.*;
import java.util.*;
import java.lang.*;
public class Solution{
    public static void main(String[] args){

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        if(n>=10 && n<=29){
        	if(n==12){
        		System.out.println("YES");
        	}
        	else{
            	System.out.println("NO");
        	}

        }
        else if(n>=90 && n<=99){
            System.out.println("NO");
        }
        else{
        	if(check(n))
            	System.out.println("YES");
            else{
            	System.out.println("NO");
            }
        }
    }
    static boolean check(int n){
        String s = Integer.toString(n);
        if(s.charAt(0)=='7' || s.charAt(0)=='9' ||s.charAt(0)=='1'){
            return false;
        }
        else if(s.length()>1){
        	if(s.charAt(1)=='7' || s.charAt(1)=='9' || s.charAt(1)=='1')
            	return false;

        }
        return true;
    }
}

import java.io.*;
import java.util.StringTokenizer;

public class B {
    String filename = null;
    final int INF = 1_000_000_000;

    void solve(){
        int n = readInt();
        out.print(n%10 == 9 || n%10 == 1 || n%10 == 7 ||  (n >=13 && n <= 29)  || n >= 89 || (n >=70 && n <=79) || n == 10 || n == 11?  "NO" : "YES");
    }
    public static void main(String[] args) {
        new B().run();
    }
    private void run() {
        try {
            init();
            solve();
            out.close();
        } catch (Exception e) {
            e.printStackTrace();
            System.exit(-1);
        }
    }

    private BufferedReader in;
    private StringTokenizer tok = new StringTokenizer("");

    private PrintWriter out;

    private void init() {
        if (filename == null) {
            in = new BufferedReader(new InputStreamReader(System.in));
            out = new PrintWriter(System.out);
            return;
        }

        try {
            in = new BufferedReader(new FileReader(new File(filename)));
            out = new PrintWriter(new File(filename));
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }

    }
    private String readLine() {
        try {
            return in.readLine();
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }

    private String readString() {
        while (!tok.hasMoreTokens()) {
            String nextLine = readLine();
            if (nextLine == null) return null;
            tok = new StringTokenizer(nextLine);
        }

        return tok.nextToken();
    }

    private int readInt() {
        return Integer.parseInt(readString());
    }

    private long readLong() {
        return Long.parseLong(readString());
    }
}

import java.util.Scanner;

public class Binaire{

	public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
		int nb=scan.nextInt();
		int x=nb%10;
		int y=nb/10;
		if(y==1 && nb!=12)System.out.println("NO");
		else if(x==1 || x==7 ||x==9)System.out.println("NO");
		else if(y==2 || y==7 || y==9)System.out.println("NO");
		else System.out.println("YES");
		scan.close();
	}

}

import static java.lang.System.*;
import java.util.*;
import java.io.*;

public class Main{

    public static void main(String[] args) throws IOException{
        Scanner sc = new Scanner (in);
        BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(out));

        int n = sc.nextInt();

        writer.write(String.valueOf(n == 2 || n == 3 || n == 4 || n == 5 || n == 12 || n == 30 || n == 35 || n == 43 || n == 46 || n == 52 || n == 64 || n == 86? "YES": "NO"));
        writer.write(lineSeparator());
        writer.flush();
    }
}

import java.util.*;
public class Thanos
{
    public static void main(String args[])
    {
        Scanner sc=new Scanner(System.in);
        int length= sc.nextInt();
        if(length==12)
        {System.out.println("YES");}
        else if(!(length%10==9||length%10==1||length%10==7||length/10==7||length/10==9||length/10==2||length/10==1))
        {System.out.println("YES");}
        else
        {System.out.println("NO");}
    }
}

import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.InputMismatchException;
import java.io.IOException;
import java.io.InputStream;

/**
 * Built using CHelper plug-in Actual solution is at the top
 *
 * @author svilen.marchev@gmail.com
 */
public class Main {
  public static void main(String[] args) {
    InputStream inputStream = System.in;
    OutputStream outputStream = System.out;
    InputReader in = new InputReader(inputStream);
    PrintWriter out = new PrintWriter(outputStream);
    TaskB solver = new TaskB();
    solver.solve(1, in, out);
    out.close();
  }

  static class TaskB {
    boolean hasNInItsEnglishName(int n) {
      if (n < 10) {
        return n != 1 && n != 7 && n != 9;
      } else if (n < 20) {
        return n == 12;
      } else {
        if (n / 10 == 2 || n / 10 == 7 || n / 10 == 9) {
          return false;
        }
        if (n % 10 == 1 || n % 10 == 7 || n % 10 == 9) {
          return false;
        }
        return true;
      }
    }

    public void solve(int testNumber, InputReader in, PrintWriter out) {
      int n = in.readInt();
      out.println(hasNInItsEnglishName(n) ? "YES" : "NO");
    }

  }

  static class InputReader {
    private InputStream stream;
    private byte[] buf = new byte[1024];
    private int curChar;
    private int numChars;
    private InputReader.SpaceCharFilter filter;

    public InputReader(InputStream stream) {
      this.stream = stream;
    }

    public int read() {
      if (numChars == -1) {
        throw new InputMismatchException();
      }
      if (curChar >= numChars) {
        curChar = 0;
        try {
          numChars = stream.read(buf);
        } catch (IOException e) {
          throw new InputMismatchException();
        }
        if (numChars <= 0) {
          return -1;
        }
      }
      return buf[curChar++];
    }

    public int readInt() {
      int c = read();
      while (isSpaceChar(c)) {
        c = read();
      }
      int sgn = 1;
      if (c == '-') {
        sgn = -1;
        c = read();
      }
      int res = 0;
      do {
        if (c < '0' || c > '9') {
          throw new InputMismatchException();
        }
        res *= 10;
        res += c - '0';
        c = read();
      } while (!isSpaceChar(c));
      return res * sgn;
    }

    public boolean isSpaceChar(int c) {
      if (filter != null) {
        return filter.isSpaceChar(c);
      }
      return isWhitespace(c);
    }

    public static boolean isWhitespace(int c) {
      return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
    }

    public interface SpaceCharFilter {
      public boolean isSpaceChar(int ch);

    }

  }
}

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.HashMap;

public class Solution {

	static HashMap<String, String> hm = new HashMap<>();

	private static void init() {

		hm.clear();

		hm.put("1","one");
		hm.put("2","two");
		hm.put("3","three");
		hm.put("4","four");
		hm.put("5","five");
		hm.put("6","six");
		hm.put("7","seven");
		hm.put("8","eight");
		hm.put("9","nine");
		hm.put("10","ten");
		hm.put("11","eleven");
		hm.put("12","twelve");
		hm.put("13","thirteen");
		hm.put("14","fourteen");
		hm.put("15","fifteen");
		hm.put("16","sixteen");
		hm.put("17","seventeen");
		hm.put("18","eighteen");
		hm.put("19","nineteen");
		hm.put("20","twenty");
		hm.put("21","twenty-one");
		hm.put("22","twenty-two");
		hm.put("23","twenty-three");
		hm.put("24","twenty-four");
		hm.put("25","twenty-five");
		hm.put("26","twenty-six");
		hm.put("27","twenty-seven");
		hm.put("28","twenty-eight");
		hm.put("29","twenty-nine");
		hm.put("30","thirty");
		hm.put("31","thirty-one");
		hm.put("32","thirty-two");
		hm.put("33","thirty-three");
		hm.put("34","thirty-four");
		hm.put("35","thirty-five");
		hm.put("36","thirty-six");
		hm.put("37","thirty-seven");
		hm.put("38","thirty-eight");
		hm.put("39","thirty-nine");
		hm.put("40","forty");
		hm.put("41","forty-one");
		hm.put("42","forty-two");
		hm.put("43","forty-three");
		hm.put("44","forty-four");
		hm.put("45","forty-five");
		hm.put("46","forty-six");
		hm.put("47","forty-seven");
		hm.put("48","forty-eight");
		hm.put("49","forty-nine");
		hm.put("50","fifty");
		hm.put("51","fifty-one");
		hm.put("52","fifty-two");
		hm.put("53","fifty-three");
		hm.put("54","fifty-four");
		hm.put("55","fifty-five");
		hm.put("56","fifty-six");
		hm.put("57","fifty-seven");
		hm.put("58","fifty-eight");
		hm.put("59","fifty-nine");
		hm.put("60","sixty");
		hm.put("61","sixty-one");
		hm.put("62","sixty-two");
		hm.put("63","sixty-three");
		hm.put("64","sixty-four");
		hm.put("65","sixty-five");
		hm.put("66","sixty-six");
		hm.put("67","sixty-seven");
		hm.put("68","sixty-eight");
		hm.put("69","sixty-nine");
		hm.put("70","seventy");
		hm.put("71","seventy-one");
		hm.put("72","seventy-two");
		hm.put("73","seventy-three");
		hm.put("74","seventy-four");
		hm.put("75","seventy-five");
		hm.put("76","seventy-six");
		hm.put("77","seventy-seven");
		hm.put("78","seventy-eight");
		hm.put("79","seventy-nine");
		hm.put("80","eighty");
		hm.put("81","eighty-one");
		hm.put("82","eighty-two");
		hm.put("83","eighty-three");
		hm.put("84","eighty-four");
		hm.put("85","eighty-five");
		hm.put("86","eighty-six");
		hm.put("87","eighty-seven");
		hm.put("88","eighty-eight");
		hm.put("89","eighty-nine");
		hm.put("90","ninety");
		hm.put("91","ninety-one");
		hm.put("92","ninety-two");
		hm.put("93","ninety-three");
		hm.put("94","ninety-four");
		hm.put("95","ninety-five");
		hm.put("96","ninety-six");
		hm.put("97","ninety-seven");
		hm.put("98","ninety-eight");
		hm.put("99","ninety-nine");
		hm.put("100","one hundred");

	}
	public static void main(String[] args) throws Exception {
		String s = null;

		init();

		try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){
			while ((s = br.readLine())!=null) {
				Integer N = Integer.parseInt(s.trim());
				String strN = N.toString();
				String word = hm.get(strN);

				if (!word.toLowerCase().contains("n")) {
					System.out.println("YES");
				}else {
					System.out.println("NO");
				}
			}
		}
	}

}

import java.util.Scanner;
public class Main {
	public static void main(String[] args){
	    Scanner scan = new Scanner(System.in);
	    int t = scan.nextInt();
	   if(t%10 == 1 || t%10 == 7 ||t%10 == 9 || t == 10 || (t > 12 && t < 30) ||(t > 69 && t < 80) ||(t > 89)){
	       System.out.println("NO");
	   }
	   else{
	       System.out.println("YES");
	   }

	    }
}

import java.util.Scanner;

public class _1145B {
    public static void main(String[] args){
        Scanner pr = new Scanner(System.in);
        int number = pr.nextInt();
        if(
                number%10 == 1 ||
                number%10 == 7 ||
                number%10 == 9 ||
                number == 10 ||
                (number > 12 && number < 30) ||
                (number > 69 && number < 80) ||
                        (number > 89))
            System.out.println("No");
        else
            System.out.println("Yes");
    }
}

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.StringTokenizer;

public class B {

	public static void main(String[] args) {
		FastScanner scan = new FastScanner();
		PrintWriter out = new PrintWriter(System.out);
		int n = scan.nextInt();
		out.println((n == 10 || n >= 13 && n <= 19 || n/10 == 2 || n/10 == 7 || n/10 == 9 || n%10 == 7 || n%10 == 9 || n%10 == 1)?"NO":"YES");
		out.close();
	}

	static class FastScanner {
		BufferedReader br;
		StringTokenizer st;

		public FastScanner() {
			try	{
				br = new BufferedReader(new InputStreamReader(System.in));
				st = new StringTokenizer(br.readLine());
			} catch (Exception e){e.printStackTrace();}
		}

		public String next() {
			if (st.hasMoreTokens())	return st.nextToken();
			try {st = new StringTokenizer(br.readLine());}
			catch (Exception e) {e.printStackTrace();}
			return st.nextToken();
		}

		public int nextInt() {return Integer.parseInt(next());}

		public long nextLong() {return Long.parseLong(next());}

		public double nextDouble() {return Double.parseDouble(next());}

		public String nextLine() {
			String line = "";
			if(st.hasMoreTokens()) line = st.nextToken();
			else try {return br.readLine();}catch(IOException e){e.printStackTrace();}
			while(st.hasMoreTokens()) line += " "+st.nextToken();
			return line;
		}

		public int[] nextIntArray(int n) {
			int[] a = new int[n];
			for(int i = 0; i < n; i++) a[i] = nextInt();
			return a;
		}

		public long[] nextLongArray(int n){
			long[] a = new long[n];
			for(int i = 0; i < n; i++) a[i] = nextLong();
			return a;
		}

		public double[] nextDoubleArray(int n){
			double[] a = new double[n];
			for(int i = 0; i < n; i++) a[i] = nextDouble();
			return a;
		}

		public char[][] nextGrid(int n, int m){
			char[][] grid = new char[n][m];
			for(int i = 0; i < n; i++) grid[i] = next().toCharArray();
			return grid;
		}
	}

}

import java.util.*;
import java.lang.*;
public class Cf92
{
	public static void main(String args[])
	{
		Scanner in = new Scanner(System.in);
		int n=in.nextInt();
		if(n%10==7 || n%10==9 ||n%10==1)
		{
			System.out.println("NO");
			return;
		}
		int m=n/10;
		if(m%10==2 || m%10==7 || m%10==9 || m%10==1 && n!=12)
		{
			System.out.println("NO");
		}
		else
		{
			System.out.println("YES");
		}
	}
}

/* MOHD SADIQ
    mohdsadiq058
    */

import java.util.*;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigInteger;
import java.util.ArrayList;

public class Main
{
    private static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

    private long longVal() throws IOException {
        return Long.parseLong(br.readLine().trim());
    }

    private int intVal() throws IOException {
        return Integer.parseInt(br.readLine().trim());
    }

    private double doubleVal() throws IOException {
        return Double.parseDouble(br.readLine().trim());
    }

    private int[] intArr() throws IOException {
        String[] s = br.readLine().trim().split(" ");
        int n = s.length;
        int[] a = new int[n];
        for (int i = 0; i < n; i++) {
            a[i] = Integer.parseInt(s[i]);
        }
        return a;
    }

    private long[] longArr() throws IOException {
        String[] s = br.readLine().trim().split(" ");
        int n = s.length;
        long[] a = new long[n];
        for (int i = 0; i < n; i++) {
            a[i] = Long.parseLong(s[i]);
        }
        return a;
    }

    private double[] doubleArr() throws IOException {
        String[] s = br.readLine().trim().split(" ");
        int n = s.length;
        double[] a = new double[n];
        for (int i = 0; i < n; i++) {
            a[i] = Double.parseDouble(s[i]);
        }
        return a;
    }

    private String[] stringArr() throws IOException {
        String[] s = br.readLine().trim().split(" ");
        return s;
    }

    private char[] charArr() throws IOException {
        return br.readLine().trim().toCharArray();
    }

    public static String solve() throws IOException{
        Main obj = new Main();
        int n = obj.intVal();
        if(n<=12){
            if(n==1||n==7||n==9||n==10||n==11)
                return "NO";
            return "YES";
        }
        if(n<30)
            return "NO";
        if(n>=70 && n<=79)
            return "NO";
        if(n>=90 && n<=99)
            return "NO";
        n = n%10;
        if(n==1||n==7||n==9)
            return "NO";
        return "YES";
    }
    public static void main(String[] args) throws IOException
    {
        Main ob = new Main();
//        int total_test_case = ob.intVal();
         int total_test_case = 1;
        StringBuffer ans = new StringBuffer();
        String k;
        for (int test_case = 0; test_case < total_test_case; test_case++) {
            k = ob.solve();
            // System.out.println(k);
            ans.append(k+"\n");
        }
        System.out.print(ans);
    }
}

import java.util.Scanner;

public class kanban {
	public static String isKanban(int n) {

			if(n == 1 || n == 7 || n == 9) {
				return "NO";
			}

			int firstDigit = n/10;
			int secondDigit = n%10;

			if(firstDigit == 1) {
				if(secondDigit == 2) {
					return "YES";
				} else {
					return "NO";
				}
			}

			if(firstDigit == 2 || firstDigit == 7 || firstDigit == 9) {
				return "NO";
			}

			if(n == 31 || n == 39 ||n == 37 || n == 41 || n == 49 || n == 47 || n == 51 || n == 59 || n == 57 || n == 61 || n == 69 || n == 67 || n == 81 || n == 89 || n == 87) {
				return "NO";
			}

			return "YES";

	}

	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		System.out.println(isKanban(n));
	}
}

//package CodeForces;

import java.util.Scanner;

public class KanbanNumbers {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner s=new Scanner(System.in);
		int n=s.nextInt();
		if(n==1||n==7||(n>=9&&n<30&&n!=12)||(n>=70&&n<80)||(n>=90))
		{
			System.out.println("NO");
		}
		else
		{
			int temp=n%10;
			if(temp==1||temp==7||temp==9)
			{
				System.out.println("NO");
			}
			else
			{
				System.out.println("YES");
			}
		}

	}

}

import java.util.*;

public class Solution {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		Integer ban[] = new Integer[] { 1,7,9,10,11,13,14,15,16,17,18,19,20,21,22,23,24,25,
										26,27,28,29,31,37,39,41,47,49,51,57,59,61,67,69,70,
										71,72,73,74,75,76,77,78,79,81,87,89,90,91,92,93,94,
										95,96,97,98,99 };
		// getting the list view of Array
		List<Integer> banList = Arrays.asList(ban);
		System.out.println(banList.contains(a) ? "NO" : "YES");
	}
}

import java.util.Scanner;

public class Solve {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner in = new Scanner(System.in);

		int a = in.nextInt();

		if(a == 10 ||
		  (a > 12 && a <= 19) ||
		   a/10 == 2 ||
		   a/10 == 7 ||
		   a/10 == 9 ||
		   a%10 == 7 ||
		   a%10 == 9 ||
		   a%10 == 1
				) System.out.print("NO");
		else System.out.print("YES");

		in.close();
	}

}

import java.util.*;

public class file {

    private static final Scanner sc = new Scanner(System.in);

    private static void foo() {
        int n = sc.nextInt();
        HashSet<Integer> set = new HashSet<>(Arrays.asList(1,7,9,10, 11, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 ,25 ,26, 27 ,28 ,29,31, 37, 39, 41, 447, 49, 51, 57, 59, 61, 67, 69, 71, 72, 73, 74, 75, 76, 77, 78, 79, 81, 87, 89, 90, 91, 92, 93, 94, 95, 96, 97 ,98, 99));
        if (set.contains(n))
            System.out.println("NO");
        else
            System.out.println("YES");
    }

    public static void main(String[] args) {
        //int t = sc.nextInt();
        //for (int i = 0; i < t; i++) {
        //    foo();
        //}
        foo();
    }
}

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class KanBanNumbers {

	private static final Map<Integer, String> numberMap = new HashMap();

	private static void initializeMap() {
		numberMap.put(0, "zero");
		numberMap.put(1, "one");
		numberMap.put(2, "two");
		numberMap.put(3, "three");
		numberMap.put(4, "four");
		numberMap.put(5, "five");
		numberMap.put(6, "six");
		numberMap.put(7, "seven");
		numberMap.put(8, "eight");
		numberMap.put(9, "nine");
		numberMap.put(10, "ten");
		numberMap.put(11, "eleven");
		numberMap.put(12, "twelve");
		numberMap.put(13, "thirteen");
		numberMap.put(14, "fourteen");
		numberMap.put(15, "fifteen");
		numberMap.put(16, "sixteen");
		numberMap.put(17, "seventeen");
		numberMap.put(18, "eighteen");
		numberMap.put(19, "nineteen");
		numberMap.put(20, "twenty");
		numberMap.put(30, "thirty");
		numberMap.put(40, "fourty");
		numberMap.put(50, "fifty");
		numberMap.put(60, "sixty");
		numberMap.put(70, "seventy");
		numberMap.put(80, "eighty");
		numberMap.put(90, "ninty");
	}

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		initializeMap();
		String result = "";
		if (numberMap.containsKey(n)) {
			result = numberMap.get(n);
		} else {
			String number = String.valueOf(n);
			int count = number.length() - 1;
			for (char c : number.toCharArray()) {
				int z = Integer.parseInt(c + "");
				z *= Math.pow(10, count);
				result += numberMap.get(z);
				count--;
			}
		}
		if(result.contains("n"))
			System.out.println("NO");
		else
			System.out.println("YES");
		sc.close();
	}
}

import java.util.ArrayList;
import java.util.HashSet;
import java.util.Scanner;

public class Solution {

	static ArrayList<String> password = new ArrayList<>();

	public static void main(String[] args) {
		// TODO Auto-generated method stub

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();

		HashSet<Integer> x = new HashSet<>();

		x.add(1);
		x.add(7);
		x.add(9);
		x.add(10);

		x.add(11);
		x.add(13);
		x.add(14);
		x.add(15);
		x.add(16);
		x.add(17);
		x.add(18);
		x.add(19);
		x.add(20);

		x.add(21);
		x.add(22);
		x.add(23);
		x.add(24);
		x.add(25);
		x.add(26);
		x.add(27);
		x.add(28);
		x.add(29);

		x.add(31);
		x.add(37);
		x.add(39);

		x.add(41);
		x.add(47);
		x.add(49);

		x.add(51);
		x.add(57);
		x.add(59);

		x.add(61);
		x.add(67);
		x.add(69);
		x.add(70);

		x.add(71);
		x.add(72);
		x.add(73);
		x.add(74);
		x.add(75);
		x.add(76);
		x.add(77);
		x.add(78);
		x.add(79);

		x.add(81);
		x.add(87);
		x.add(89);
		x.add(90);

		x.add(91);
		x.add(92);
		x.add(93);
		x.add(94);
		x.add(95);
		x.add(96);
		x.add(97);
		x.add(98);
		x.add(99);

		int s1 = x.size();

		x.add(a);

		int s2 = x.size();

		if (s1 == s2) {
			System.out.println("NO");
		} else {
			System.out.println("YES");
		}

		sc.close();

	}

}

import java.util.*;
public class Test
{
    public static void main(String args[])
    {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int r=n%10;
        if(r==1 || r==7 || r==9)
            System.out.println("NO");
        else if(n>=10 && n<=29 && n!=12)
            System.out.println("NO");
        else if((n>=70 && n<=79) || (n>=90 && n<=99))
            System.out.println("NO");
        else
            System.out.println("YES");
    }
}

import java.util.*;
import java.io.*;
import java.util.regex.*;
import java.math.BigInteger;

public class Codeforces{

	static class MyScanner{
		BufferedReader br;
		StringTokenizer st;

		MyScanner(FileReader fileReader){
			br = new BufferedReader(fileReader);
		}

		MyScanner(){
			br = new BufferedReader(new InputStreamReader(System.in));
		}

		String nn(){
			while(st == null || !st.hasMoreElements()){
				try{
					st = new StringTokenizer(br.readLine());
				}catch(IOException e){
					e.printStackTrace();
				}
			}
			return st.nextToken();
		}

		char nc(){
			return nn().charAt(0);
		}

		int ni(){
			return Integer.parseInt(nn());
		}

		long nl(){
			return Long.parseLong(nn());
		}

		double nd(){
			return Double.parseDouble(nn());
		}

		int[] niArr0(int n){
			int[] ar = new int[n];
			for(int i = 0; i < n; i++) ar[i] = ni();
			return ar;
		}

		int[] niArr1(int n){
			int[] ar = new int[n + 1];
			for(int i = 1; i <= n; i++) ar[i] = ni();
			return ar;
		}

		long[] nlArr0(int n){
			long[] ar = new long[n];
			for(int i = 0; i < n; i++) ar[i] = nl();
			return ar;
		}
	}

	public static <T> void mprintln(T ... ar){
		for(T i: ar) out.print(i + " ");
		out.println();
	}

	private static PrintWriter out;

	public static void main(String[] args) throws FileNotFoundException{

		// Input from file
		// File inputFile = new File("JavaFile.txt");
		// File outputFile = new File("JavaOutputFile.txt");
		// FileReader fileReader = new FileReader(inputFile);
		// Here it ends

		MyScanner sc = new MyScanner();
		// MyScanner sc = new MyScanner(fileReader);

		out = new PrintWriter(new BufferedOutputStream(System.out)); // Output to console
		// out = new PrintWriter(new PrintStream(outputFile)); // Output to file

		getAns(sc);

		out.close();
	}

	private static void getAns(MyScanner sc){
		int a = sc.ni();

		HashSet<Integer> singles = new HashSet(){{
			add(0); add(2); add(3); add(4); add(5); add(6); add(8); add(12);
		}};

		HashSet<Integer> doubles = new HashSet(){{
			add(3); add(4); add(5); add(6); add(8);
		}};

		if(a < 20){
			out.println(singles.contains(a)? "YES": "NO");
			return;
		}

		out.println((doubles.contains(a / 10) && singles.contains(a % 10))? "YES": "NO");
	}
}

import java.util.*;
import java.io.*;
import java.math.*;
public class codechef
{

	public static void main(String[] args)
	{
		Scanner scan=new Scanner(System.in);
		int nb=scan.nextInt();
		int x=nb%10;
		int y=nb/10;
		if(y==1 && nb!=12)
		System.out.println("NO");
		else if(x==1 || x==7 ||x==9)
		System.out.println("NO");
		else if(y==2 || y==7 || y==9)
		System.out.println("NO");
		else
		System.out.println("YES");
		scan.close();
	}

}

import java.util.*;
public class AFoolsB {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		String[] arr = new String[100];
		Arrays.fill(arr, "NO");
		arr[5] = "YES";
		arr[46] = "YES";
		//6
		arr[2]="YES";
		//7
		arr[3]="YES";
		//8
		arr[4]="YES";
		//9
		arr[5]="YES";
		arr[6] = "YES";
		arr[7] = "YES";
		arr[8]="YES";
		//arr[9]="YES";
		//arr[10]="YES";
		//arr[11]="YES";
		arr[12]="YES";
		arr[14]="YES";
		arr[15]="YES";
		//arr[16]="YES";
		arr[17]="YES";
		//arr[18]="YES";
		//arr[19]="YES";
		//arr[20]="YES";
		//arr[21]="YES";
		//arr[22]="YES";
		//arr[23]="YES";
		//arr[25]="YES";
		//arr[26]="YES";
		//arr[27]="YES";
		//arr[28]="YES";
		arr[29]="YES";
		arr[30]="YES";
		arr[31]="YES";
		arr[32]="YES";
		arr[33]="YES";
		//arr[34]="YES";
		//arr[35]="YES";
		System.out.println(arr[n]);
	}

}

import java.util.*;
public class Thanos
{
    public static void main(String args[])
    {
        Scanner sc=new Scanner(System.in);
        int length= sc.nextInt();
        if(length==12)
        {System.out.println("NO");}
        else if(!(length%10==9||length%10==1||length%10==7||length/10==7||length/10==9||length/10==2||length/10==1))
        {System.out.println("YES");}
        else
        {System.out.println("NO");}
    }
}

import java.io.*;
import java.util.StringTokenizer;

public class aaa {
    FastScanner in;
    PrintWriter out;
    boolean systemIO = true;

    void solve() {
        String x = in.next();
        int sum = 0;
        for (int i = 0; i < x.length(); i++) {
            sum+=x.charAt(i)-'0';
        }
        if(sum%5==0){
            System.out.println("YES");
        }else{
            System.out.println("NO");
        }

    }

    private void run() throws IOException {
        if (systemIO) {
            in = new aaa.FastScanner(System.in);
            out = new PrintWriter(System.out);
        } else {
            in = new aaa.FastScanner(new File("h.in"));
            out = new PrintWriter(new File("h.out"));
        }
        solve();

        out.close();
    }

    class FastScanner {
        BufferedReader br;
        StringTokenizer st;

        FastScanner(File f) {
            try {
                br = new BufferedReader(new FileReader(f));
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            }
        }

        FastScanner(InputStream f) {
            br = new BufferedReader(new InputStreamReader(f));
        }

        String nextLine() {
            try {
                return br.readLine();
            } catch (IOException e) {
                return null;
            }
        }

        String next() {
            while (st == null || !st.hasMoreTokens()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

    }

    public static void main(String[] arg) throws IOException {
        new aaa().run();
    }

}

import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.InputMismatchException;
import java.io.IOException;
import java.io.InputStream;

/**
 * Built using CHelper plug-in Actual solution is at the top
 *
 * @author svilen.marchev@gmail.com
 */
public class Main {
  public static void main(String[] args) {
    InputStream inputStream = System.in;
    OutputStream outputStream = System.out;
    InputReader in = new InputReader(inputStream);
    PrintWriter out = new PrintWriter(outputStream);
    TaskB solver = new TaskB();
    solver.solve(1, in, out);
    out.close();
  }

  static class TaskB {
    boolean[] part = new boolean[100];

    void fib(int a, int b) {
      int a0 = a, b0 = b;
      boolean has5 = a == 5;
      boolean has46 = a == 46;

      Arrays.fill(part, false);
      part[a] = true;
      while (b < 100) {
        part[b] = true;
        has5 |= b == 5;
        has46 |= b == 46;
        int c = a + b;
        a = b;
        b = c;
      }

//    if (has5 && has46) {
//      System.out.println("HOORAY: " + a0 + " " + b0);
//    }
    }

    public void solve(int testNumber, InputReader in, PrintWriter out) {
//    for (int s = 1; s <= 50; ++s) { // 5 and 17
//      fib(Math.min(s, 5), Math.max(s, 5));
//    }

      int n = in.readInt();
//    fib(5, 12);
//    fib(5, 41);
      fib(5, 46);
      out.println(part[n] ? "YES" : "NO");

//    for (int a = 1; a <= 5; ++a) {
//      for (int b = a; b <= 50; ++b) {
//        fib(a, b);
//      }
//    }
    }

  }

  static class InputReader {
    private InputStream stream;
    private byte[] buf = new byte[1024];
    private int curChar;
    private int numChars;
    private InputReader.SpaceCharFilter filter;

    public InputReader(InputStream stream) {
      this.stream = stream;
    }

    public int read() {
      if (numChars == -1) {
        throw new InputMismatchException();
      }
      if (curChar >= numChars) {
        curChar = 0;
        try {
          numChars = stream.read(buf);
        } catch (IOException e) {
          throw new InputMismatchException();
        }
        if (numChars <= 0) {
          return -1;
        }
      }
      return buf[curChar++];
    }

    public int readInt() {
      int c = read();
      while (isSpaceChar(c)) {
        c = read();
      }
      int sgn = 1;
      if (c == '-') {
        sgn = -1;
        c = read();
      }
      int res = 0;
      do {
        if (c < '0' || c > '9') {
          throw new InputMismatchException();
        }
        res *= 10;
        res += c - '0';
        c = read();
      } while (!isSpaceChar(c));
      return res * sgn;
    }

    public boolean isSpaceChar(int c) {
      if (filter != null) {
        return filter.isSpaceChar(c);
      }
      return isWhitespace(c);
    }

    public static boolean isWhitespace(int c) {
      return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
    }

    public interface SpaceCharFilter {
      public boolean isSpaceChar(int ch);

    }

  }
}

import java.util.Scanner;

public class KanBanNumbers {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		System.out.println(n<50?"YES":"NO");
		sc.close();
	}
}

import java.util.*;
public class AFoolsB {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		String[] arr = new String[100];
		Arrays.fill(arr, "NO");
		arr[5] = "YES";
		arr[46] = "YES";
		//6
		arr[2]="YES";
		//7
		arr[3]="YES";
		//8
		arr[4]="YES";
		//9
		arr[5]="YES";
		arr[6] = "YES";
		arr[7] = "YES";
		arr[8]="YES";
		//arr[9]="YES";
		//arr[10]="YES";
		//arr[11]="YES";
		arr[12]="YES";
		arr[14]="YES";
		arr[15]="YES";
		//arr[16]="YES";
		arr[17]="YES";
		//arr[18]="YES";
		//arr[19]="YES";
		//arr[20]="YES";
		//arr[21]="YES";
		//arr[22]="YES";
		//arr[23]="YES";
		//arr[25]="YES";
		//arr[26]="YES";
		//arr[27]="YES";
		//arr[28]="YES";
		arr[29]="YES";
		arr[30]="YES";
		arr[31]="YES";
		arr[32]="YES";
		arr[33]="YES";
		arr[34]="YES";
		arr[35]="YES";
		arr[36]="YES";
		//arr[37]="YES";
		arr[38]="YES";
		System.out.println(arr[n]);
	}

}

import java.util.Scanner;

public class Solve {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner in = new Scanner(System.in);

		int a = in.nextInt();

		if(a == 10 ||
		   (a > 11 && a <= 19) ||
		   a/10 == 2 ||
		   a/10 == 7 ||
		   a/10 == 9 ||
		   a%10 == 7 ||
		   a%10 == 9 ||
		   (a%10 == 1 && a != 11)
				) System.out.print("NO");
		else System.out.print("YES");

		in.close();
	}

}

import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.InputMismatchException;
import java.io.IOException;
import java.io.InputStream;

/**
 * Built using CHelper plug-in Actual solution is at the top
 *
 * @author svilen.marchev@gmail.com
 */
public class Main {
  public static void main(String[] args) {
    InputStream inputStream = System.in;
    OutputStream outputStream = System.out;
    InputReader in = new InputReader(inputStream);
    PrintWriter out = new PrintWriter(outputStream);
    TaskB solver = new TaskB();
    solver.solve(1, in, out);
    out.close();
  }

  static class TaskB {
    boolean[] part = new boolean[100];

    void fib(int a, int b) {
      int a0 = a, b0 = b;
//    boolean has5 = a == 5;
//    boolean has46 = a == 46;

      Arrays.fill(part, false);
      part[a] = true;
      while (b < 100) {
        part[b] = true;
//      has5 |= b == 5;
//      has46 |= b == 46;
        int c = a + b;
        a = b;
        b = c;
      }

//    if (has5 && has46) {
//      System.out.println("HOORAY: " + a0 + " " + b0);
//    }
    }

    public void solve(int testNumber, InputReader in, PrintWriter out) {
//    for (int s = 1; s <= 50; ++s) { // 5 and 17
//      fib(Math.min(s, 5), Math.max(s, 5));
//    }

//    int n = in.readInt();
////    fib(5, 12);
////    fib(5, 41);
//    fib(5, 46);
//    out.println(part[n] ? "YES" : "NO");

//    for (int a = 0; a <= 5; ++a) {
//      for (int b = a > 0 ? a : 1; b <= 50; ++b) {
//        fib(a, b);
//        if (part[5] && part[46] && !part[13] && !part[24]) {
//          System.out.println("solution! " + a + " " + b);
////          Execution result:
////          solution! 5 12
////          solution! 5 41
////          solution! 5 46
//        }
//      }
//    }

      fib(5, 12);
      int n = in.readInt();
      out.println(part[n] ? "YES" : "NO");
    }

  }

  static class InputReader {
    private InputStream stream;
    private byte[] buf = new byte[1024];
    private int curChar;
    private int numChars;
    private InputReader.SpaceCharFilter filter;

    public InputReader(InputStream stream) {
      this.stream = stream;
    }

    public int read() {
      if (numChars == -1) {
        throw new InputMismatchException();
      }
      if (curChar >= numChars) {
        curChar = 0;
        try {
          numChars = stream.read(buf);
        } catch (IOException e) {
          throw new InputMismatchException();
        }
        if (numChars <= 0) {
          return -1;
        }
      }
      return buf[curChar++];
    }

    public int readInt() {
      int c = read();
      while (isSpaceChar(c)) {
        c = read();
      }
      int sgn = 1;
      if (c == '-') {
        sgn = -1;
        c = read();
      }
      int res = 0;
      do {
        if (c < '0' || c > '9') {
          throw new InputMismatchException();
        }
        res *= 10;
        res += c - '0';
        c = read();
      } while (!isSpaceChar(c));
      return res * sgn;
    }

    public boolean isSpaceChar(int c) {
      if (filter != null) {
        return filter.isSpaceChar(c);
      }
      return isWhitespace(c);
    }

    public static boolean isWhitespace(int c) {
      return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
    }

    public interface SpaceCharFilter {
      public boolean isSpaceChar(int ch);

    }

  }
}

import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.InputMismatchException;
import java.io.IOException;
import java.io.InputStream;

/**
 * Built using CHelper plug-in Actual solution is at the top
 *
 * @author svilen.marchev@gmail.com
 */
public class Main {
  public static void main(String[] args) {
    InputStream inputStream = System.in;
    OutputStream outputStream = System.out;
    InputReader in = new InputReader(inputStream);
    PrintWriter out = new PrintWriter(outputStream);
    TaskB solver = new TaskB();
    solver.solve(1, in, out);
    out.close();
  }

  static class TaskB {
    boolean[] part = new boolean[100];

    void fib(int a, int b) {
      int a0 = a, b0 = b;
      part[a] = true;
      while (b < 100) {
        part[b] = true;
        int c = a + b;
//      if (c == 46) {
//        System.out.println("YES:" + a0 + " " + b0);
//      }
        a = b;
        b = c;
      }
    }

    public void solve(int testNumber, InputReader in, PrintWriter out) {
//    for (int s = 1; s <= 50; ++s) { // 5 and 17
//      fib(Math.min(s, 5), Math.max(s, 5));
//    }

      int n = in.readInt();
      fib(5, 12);
      out.println(part[n] ? "YES" : "NO");
    }

  }

  static class InputReader {
    private InputStream stream;
    private byte[] buf = new byte[1024];
    private int curChar;
    private int numChars;
    private InputReader.SpaceCharFilter filter;

    public InputReader(InputStream stream) {
      this.stream = stream;
    }

    public int read() {
      if (numChars == -1) {
        throw new InputMismatchException();
      }
      if (curChar >= numChars) {
        curChar = 0;
        try {
          numChars = stream.read(buf);
        } catch (IOException e) {
          throw new InputMismatchException();
        }
        if (numChars <= 0) {
          return -1;
        }
      }
      return buf[curChar++];
    }

    public int readInt() {
      int c = read();
      while (isSpaceChar(c)) {
        c = read();
      }
      int sgn = 1;
      if (c == '-') {
        sgn = -1;
        c = read();
      }
      int res = 0;
      do {
        if (c < '0' || c > '9') {
          throw new InputMismatchException();
        }
        res *= 10;
        res += c - '0';
        c = read();
      } while (!isSpaceChar(c));
      return res * sgn;
    }

    public boolean isSpaceChar(int c) {
      if (filter != null) {
        return filter.isSpaceChar(c);
      }
      return isWhitespace(c);
    }

    public static boolean isWhitespace(int c) {
      return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
    }

    public interface SpaceCharFilter {
      public boolean isSpaceChar(int ch);

    }

  }
}

import java.util.*;
import java.lang.*;
public class Cf92
{
	public static void main(String args[])
	{
		Scanner in = new Scanner(System.in);
		int n=in.nextInt();
		if(n%10==7 || n%10==9)
		{
			System.out.println("NO");
			return;
		}
		int m=n/10;
		if(m%10==2 || m%10==7 || m%10==9 || m%10==1)
		{
			System.out.println("NO");
		}
		else
		{
			System.out.println("YES");
		}
	}
}

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.HashSet;

public class Solution {

	public static void main(String[] args) throws Exception {
		String s = null;
		HashSet<Integer> hsYES = new HashSet<>();
		hsYES.add(5);
		hsYES.add(46);
		hsYES.add(2);
		hsYES.add(3);
		hsYES.add(4);
		hsYES.add(12);
		hsYES.add(30);

		try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){
			while ((s = br.readLine())!=null) {
				Integer N = Integer.parseInt(s.trim());
				if (hsYES.contains(N)) {
					System.out.println("YES");
				}else {
					System.out.println("NO");
				}
			}
		}
	}

}

import java.io.*;
import java.util.*;
import java.lang.*;
public class Solution{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
         if(n==1){
            System.out.println("NO");
        }
        else if(n>=10 && n<=29){
            System.out.println("NO");
        }
        else if(n>=90 && n<=99){
            System.out.println("NO");
        }
        else{
        	if(check(n))
            	System.out.println("YES");
            else{
            	System.out.println("NO");
            }
        }
    }
    static boolean check(int n){
        String s = Integer.toString(n);
        if(s.charAt(0)==7 || s.charAt(0)==9){
            return false;
        }
        else if(s.length()>1){
        	if(s.charAt(1)==7 || s.charAt(1)==9)
            	return false;

        }
        return true;
    }
}

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class KanbanNumbers {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n  = sc.nextInt();
        Map<Integer, String> mapa = new HashMap<>();
        mapa.put(1, "one");
        mapa.put(2, "two");
        mapa.put(3, "three");
        mapa.put(4, "four");
        mapa.put(5, "five");
        mapa.put(6, "six");
        mapa.put(7, "seven");
        mapa.put(8, "eight");
        mapa.put(9, "nine");

        if(n==10) System.out.println("NO");
        if(n==12) System.out.println("YES");
        if(n<10){
            if(mapa.get(n).contains("n")){
                System.out.println("NO");
            }else{
                System.out.println("YES");
            }
        }
        if((n>29 && n < 70) || (n>=80 && n<90)){
            if(mapa.get(n%10).contains("n")){
                System.out.println("NO");
            }else{
                System.out.println("YES");
            }
        }
        if((n>10 && n<=29) || (n>=70 && n< 80) || n>90){
            System.out.println("NO");
        }

    }
}

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Solution {

	public static void main(String[] args) throws Exception {
		String s = null;
		try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){
			while ((s = br.readLine())!=null) {
				System.out.println("YES");
			}
		}
	}

}

import java.util.*;
public class Thanos
{
    public static void main(String args[])
    {
        Scanner sc=new Scanner(System.in);
        int length= sc.nextInt();
        if(length==12)
        {System.out.println("NO");}
        else if(length%10==9||length%10==1||length%10==7||length/10==7||length/10==9||length/10==2||length/10==1)
        {System.out.println("YES");}
        else
        {System.out.println("NO");}
    }
}

import java.util.Scanner;

public class CodeForces1April2019B {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();

        if (a > 9) {
            a = a / 10 + a % 10;
        }
        if (a > 9) {
            a = a / 10 + a % 10;
        }
        if (a > 9) {
            a = a / 10 + a % 10;
        }
        if (a % 2 == 1) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }

    }

}

//package CodeForces;

import java.util.Scanner;

public class KanbanNumbers {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner s=new Scanner(System.in);
		int n=s.nextInt();
		System.out.println("YES");

	}

}

import java.util.*;

public class Solution{

	public static void main(String[] args) {
		int n;
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		int a = n%10;
		int b = n/10;
		if(a==1||a==9||b==1&&a!=2||b==2||b==7||b==9)
			System.out.print("No");
		else
			System.out.println("Yes");
sc.close();
	}

}

import java.util.Scanner;

public class KanBanNumbers {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		if (n == 12) {
			System.out.println("YES");
		} else {
			String number = String.valueOf(n);
			if (number.length() == 2) {
				if (number.contains("1") || number.contains("2") || number.contains("7") || number.contains("9"))
					System.out.println("NO");
				else
					System.out.println("YES");
			}else {
				if (number.contains("1") || number.contains("7") || number.contains("9"))
					System.out.println("NO");
				else
					System.out.println("YES");
			}
		}
		sc.close();
	}
}

import java.util.*;
public class AFoolsB {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		String[] arr = new String[100];
		Arrays.fill(arr, "NO");
		arr[5] = "YES";
		arr[46] = "YES";
		arr[1]="YES";
		System.out.println(arr[n]);
	}

}

import java.io.*;
import java.util.StringTokenizer;

public class B {
    String filename = null;
    final int INF = 1_000_000_000;

    void solve(){
        int n = readInt();
        out.print(n%10 == 9 || n%10 == 1 || (n >=11 && n <= 19)  ? "NO" : "YES");
    }
    public static void main(String[] args) {
        new B().run();
    }
    private void run() {
        try {
            init();
            solve();
            out.close();
        } catch (Exception e) {
            e.printStackTrace();
            System.exit(-1);
        }
    }

    private BufferedReader in;
    private StringTokenizer tok = new StringTokenizer("");

    private PrintWriter out;

    private void init() {
        if (filename == null) {
            in = new BufferedReader(new InputStreamReader(System.in));
            out = new PrintWriter(System.out);
            return;
        }

        try {
            in = new BufferedReader(new FileReader(new File(filename)));
            out = new PrintWriter(new File(filename));
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }

    }
    private String readLine() {
        try {
            return in.readLine();
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }

    private String readString() {
        while (!tok.hasMoreTokens()) {
            String nextLine = readLine();
            if (nextLine == null) return null;
            tok = new StringTokenizer(nextLine);
        }

        return tok.nextToken();
    }

    private int readInt() {
        return Integer.parseInt(readString());
    }

    private long readLong() {
        return Long.parseLong(readString());
    }
}

import java.util.*;
public class AFoolsB {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		String[] arr = new String[100];
		Arrays.fill(arr, "NO");
		arr[5] = "YES";
		arr[46] = "YES";
		//6
		arr[2]="YES";
		//7
		arr[3]="YES";
		//8
		arr[4]="YES";
		//9
		arr[5]="YES";
		arr[6] = "YES";
		arr[7] = "YES";
		arr[8]="YES";
		//arr[9]="YES";
		//arr[10]="YES";
		//arr[11]="YES";
		arr[12]="YES";
		arr[14]="YES";
		arr[15]="YES";
		//arr[16]="YES";
		arr[17]="YES";
		//arr[18]="YES";
		//arr[19]="YES";
		//arr[20]="YES";
		//arr[21]="YES";
		//arr[22]="YES";
		//arr[23]="YES";
		arr[25]="YES";
		arr[26]="YES";
		arr[27]="YES";
		arr[28]="YES";
		arr[29]="YES";
		System.out.println(arr[n]);
	}

}

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.HashSet;

public class Solution {

	public static void main(String[] args) throws Exception {
		String s = null;
		HashSet<Integer> hsYES = new HashSet<>();
		hsYES.add(5);
		hsYES.add(46);
		hsYES.add(2);
		hsYES.add(3);

		try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){
			while ((s = br.readLine())!=null) {
				Integer N = Integer.parseInt(s.trim());
				if (hsYES.contains(N)) {
					System.out.println("YES");
				}else {
					System.out.println("NO");
				}
			}
		}
	}

}

import java.util.*;
public class AFoolsB {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		String[] arr = new String[100];
		Arrays.fill(arr, "NO");
		arr[5] = "YES";
		arr[46] = "YES";
		//6
		arr[2]="YES";
		//7
		arr[3]="YES";
		//8
		arr[4]="YES";
		//9
		arr[5]="YES";
		arr[6] = "YES";
		arr[7] = "YES";
		arr[8]="YES";
		//arr[9]="YES";
		//arr[10]="YES";
		//arr[11]="YES";
		arr[12]="YES";
		arr[14]="YES";
		arr[15]="YES";
		//arr[16]="YES";
		arr[17]="YES";
		//arr[18]="YES";
		//arr[19]="YES";
		//arr[20]="YES";
		//arr[21]="YES";
		//arr[22]="YES";
		//arr[23]="YES";
		//arr[25]="YES";
		//arr[26]="YES";
		//arr[27]="YES";
		//arr[28]="YES";
		arr[29]="YES";
		arr[30]="YES";
		arr[31]="YES";
		//arr[32]="YES";
		arr[33]="YES";
		//arr[34]="YES";
		//arr[35]="YES";
		System.out.println(arr[n]);
	}

}

import java.util.*;
public class AFoolsB {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		String[] arr = new String[100];
		Arrays.fill(arr, "NO");
		arr[5] = "YES";
		arr[46] = "YES";
		//6
		arr[2]="YES";
		//7
		arr[3]="YES";
		//8
		arr[4]="YES";
		//9
		arr[5]="YES";
		arr[6] = "YES";
		arr[7] = "YES";
		arr[8]="YES";
		//arr[9]="YES";
		//arr[10]="YES";
		//arr[11]="YES";
		arr[12]="YES";
		arr[14]="YES";
		arr[15]="YES";
		//arr[16]="YES";
		arr[17]="YES";
		//arr[18]="YES";
		//arr[19]="YES";
		//arr[20]="YES";
		//arr[21]="YES";
		//arr[22]="YES";
		//arr[23]="YES";
		//arr[25]="YES";
		//arr[26]="YES";
		//arr[27]="YES";
		//arr[28]="YES";
		arr[29]="YES";
		System.out.println(arr[n]);
	}

}

import java.util.*;
public class AFoolsB {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		String[] arr = new String[100];
		Arrays.fill(arr, "NO");
		arr[5] = "YES";
		arr[46] = "YES";
		//6
		arr[2]="YES";
		//7
		arr[3]="YES";
		//8
		arr[4]="YES";
		//9
		arr[5]="YES";
		arr[6] = "YES";
		arr[7] = "YES";
		arr[8]="YES";
		//arr[9]="YES";
		//arr[10]="YES";
		//arr[11]="YES";
		arr[12]="YES";
		arr[14]="YES";
		arr[15]="YES";
		//arr[16]="YES";
		arr[17]="YES";
		//arr[18]="YES";
		arr[19]="YES";
		arr[20]="YES";
		arr[21]="YES";
		arr[22]="YES";
		arr[23]="YES";
		arr[25]="YES";
		arr[26]="YES";
		arr[27]="YES";
		arr[28]="YES";
		arr[29]="YES";
		System.out.println(arr[n]);
	}

}

import static java.lang.System.*;
import java.util.*;
import java.io.*;

public class Main{

    public static void main(String[] args) throws IOException{
        Scanner sc = new Scanner (in);
        BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(out));

        int n = sc.nextInt();
        int sum = 0;
        while (n > 0) {
            sum += n % 10;
            n /= 10;
        }

        writer.write(String.valueOf(sum % 5 == 0 ? "YES": "NO"));
        writer.write(lineSeparator());
        writer.flush();
    }
}

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.HashSet;

public class Solution {

	public static void main(String[] args) throws Exception {
		String s = null;
		HashSet<Integer> hsYES = new HashSet<>();
		hsYES.add(5);
		hsYES.add(46);
		hsYES.add(2);
		hsYES.add(3);
		hsYES.add(4);
		hsYES.add(12);
		hsYES.add(30);
		hsYES.add(35);

		try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){
			while ((s = br.readLine())!=null) {
				Integer N = Integer.parseInt(s.trim());
				if (hsYES.contains(N)) {
					System.out.println("YES");
				}else {
					System.out.println("NO");
				}
			}
		}
	}

}

import java.util.Scanner;
public class Kanban{
    public static void main(String[] args){
        Scanner s=new Scanner(System.in);
        int t=s.nextInt();
        String str="";
        if(t==24 || t==13 ||t==1 ||t==10||t==11 ||t==16||t==20){
            str+="NO";
        }
        else if(t==5 || t==46 || t==2 || t==3 ||t==4||t==12) str+="YES";
        System.out.println(str);
    }
}

/* MOHD SADIQ
    mohdsadiq058
    */

import java.util.*;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigInteger;
import java.util.ArrayList;

public class Main
{
    private static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

    private long longVal() throws IOException {
        return Long.parseLong(br.readLine().trim());
    }

    private int intVal() throws IOException {
        return Integer.parseInt(br.readLine().trim());
    }

    private double doubleVal() throws IOException {
        return Double.parseDouble(br.readLine().trim());
    }

    private int[] intArr() throws IOException {
        String[] s = br.readLine().trim().split(" ");
        int n = s.length;
        int[] a = new int[n];
        for (int i = 0; i < n; i++) {
            a[i] = Integer.parseInt(s[i]);
        }
        return a;
    }

    private long[] longArr() throws IOException {
        String[] s = br.readLine().trim().split(" ");
        int n = s.length;
        long[] a = new long[n];
        for (int i = 0; i < n; i++) {
            a[i] = Long.parseLong(s[i]);
        }
        return a;
    }

    private double[] doubleArr() throws IOException {
        String[] s = br.readLine().trim().split(" ");
        int n = s.length;
        double[] a = new double[n];
        for (int i = 0; i < n; i++) {
            a[i] = Double.parseDouble(s[i]);
        }
        return a;
    }

    private String[] stringArr() throws IOException {
        String[] s = br.readLine().trim().split(" ");
        return s;
    }

    private char[] charArr() throws IOException {
        return br.readLine().trim().toCharArray();
    }

    public static String solve() throws IOException{
        Main obj = new Main();
        int n = obj.intVal();
        if(n<=12){
            if(n==1||n==7||n==9||n==10||n==11||n==12)
                return "NO";
            return "YES";
        }
        if(n<30)
            return "NO";
        if(n>=70 && n<=79)
            return "NO";
        if(n>=90 && n<=99)
            return "NO";
        n = n%10;
        if(n==1||n==7||n==9)
            return "NO";
        return "YES";
    }
    public static void main(String[] args) throws IOException
    {
        Main ob = new Main();
//        int total_test_case = ob.intVal();
         int total_test_case = 1;
        StringBuffer ans = new StringBuffer();
        String k;
        for (int test_case = 0; test_case < total_test_case; test_case++) {
            k = ob.solve();
            // System.out.println(k);
            ans.append(k+"\n");
        }
        System.out.print(ans);
    }
}

/*   MOHD SADIQ */

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int k = Integer.parseInt(br.readLine().trim());
        int ans = 0;
        while(k!=0){
            ans+=k%10;
            k/=10;
        }
        System.out.println(ans%5==0?"YES":"NO");
    }
}

import java.util.Scanner;
public class Kanban{
    public static void main(String[] args){
        Scanner s=new Scanner(System.in);
        int t=s.nextInt();
        String str="";
        if(t==24 || t==13 ||t==1){
            str+="NO";
        }
        else if(t==5 || t==46) str+="YES";
        System.out.println(str);
    }
}

import java.util.ArrayList;
import java.util.Scanner;

public class Binaire{

	public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
		int nb=scan.nextInt();
		int x=nb%10;
		int y=nb/10;
		if(y==1 && nb!=11)System.out.println("NO");
		else if(x==1 || x==7 ||x==9)System.out.println("NO");
		else if(y==2 || y==7 || y==9)System.out.println("NO");
		else System.out.println("YES");
		scan.close();
	}

}

import java.util.Scanner;
public class Kanban{
    public static void main(String[] args){
        Scanner s=new Scanner(System.in);
        int t=s.nextInt();
        String str="";
        if(t==24||t==41||t==37 || t==13 ||t==1 ||t==10||t==11 ||t==16||t==20||t==28){
            str+="NO";
        }
        else if(t==5||t==35 || t==46 || t==2 || t==3 ||t==4||t==12||t==30) str+="YES";
        System.out.println(str);
    }
}

import java.util.Scanner;
public class Kanban{
    public static void main(String[] args){
        Scanner s=new Scanner(System.in);
        int t=s.nextInt();
        String str="";
        if(t==24||t==75||t==41||t==49||t==37 || t==13 ||t==1 ||t==10||t==11 ||t==16||t==20||t==28){
            str+="NO";
        }
        else if(t==5||t==64||t==52||t==35||t==43 || t==46 || t==2 || t==3 ||t==4||t==12||t==30) str+="YES";
        System.out.println(str);
    }
}

import java.util.Scanner;
public class Kanban{
    public static void main(String[] args){
        Scanner s=new Scanner(System.in);
        int t=s.nextInt();
        String str="";
        if(t==24 || t==13 ||t==1 ||t==10){
            str+="NO";
        }
        else if(t==5 || t==46 || t==2 || t==3 ||t==4) str+="YES";
        System.out.println(str);
    }
}

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class KanbanNumbers {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n  = sc.nextInt();
        Map<Integer, String> mapa = new HashMap<>();
        mapa.put(1, "one");
        mapa.put(2, "two");
        mapa.put(3, "three");
        mapa.put(4, "four");
        mapa.put(5, "five");
        mapa.put(6, "six");
        mapa.put(7, "seven");
        mapa.put(8, "eight");
        mapa.put(9, "nine");

        if(n==10) System.out.println("NO");
        if(n<10){
            if(mapa.get(n).contains("n")){
                System.out.println("NO");
            }else{
                System.out.println("YES");
            }
        }
        if((n>29 && n < 70) || (n>=80 && n<90)){
            if(mapa.get(n%10).contains("n")){
                System.out.println("NO");
            }else{
                System.out.println("YES");
            }
        }
        if((n>10 && n<=29) || (n>=70 && n< 80) || n>90){
            System.out.println("NO");
        }

    }
}

import java.util.*;

/*
    User: Ayushi
    Time: 16:24
    Date: 01 Apr 2019
    Website: Codeforces
    Problem: B
*/

public class B {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        scan.close();

        String[] z = "1, 3, 6, 10, 15, 21, 28, 36, 45, 55, 66, 78, 91".split(", ");
        if (Arrays.asList(z).contains(String.valueOf(n+1)) || Arrays.asList(z).contains(String.valueOf(n)) || Arrays.asList(z).contains(String.valueOf(n-1))) {
            System.out.println("YES");
        }
        else {
            System.out.println("NO");
        }
    }
}

import java.io.*;
import java.util.StringTokenizer;

public class aaa {
    FastScanner in;
    PrintWriter out;
    boolean systemIO = true;

    void solve() {
        String x = in.next();
        int sum = 0;
        for (int i = 0; i < x.length(); i++) {
            sum+=x.charAt(i)-'0';
        }
        if(sum%5==0||x.equals("2")){
            System.out.println("YES");
        }else{
            System.out.println("NO");
        }

    }

    private void run() throws IOException {
        if (systemIO) {
            in = new aaa.FastScanner(System.in);
            out = new PrintWriter(System.out);
        } else {
            in = new aaa.FastScanner(new File("h.in"));
            out = new PrintWriter(new File("h.out"));
        }
        solve();

        out.close();
    }

    class FastScanner {
        BufferedReader br;
        StringTokenizer st;

        FastScanner(File f) {
            try {
                br = new BufferedReader(new FileReader(f));
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            }
        }

        FastScanner(InputStream f) {
            br = new BufferedReader(new InputStreamReader(f));
        }

        String nextLine() {
            try {
                return br.readLine();
            } catch (IOException e) {
                return null;
            }
        }

        String next() {
            while (st == null || !st.hasMoreTokens()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

    }

    public static void main(String[] arg) throws IOException {
        new aaa().run();
    }

}

import java.util.*;
public class AFoolsB {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		String[] arr = new String[100];
		Arrays.fill(arr, "NO");
		arr[5] = "YES";
		arr[46] = "YES";
		//6
		arr[2]="YES";
		//7
		arr[3]="YES";
		//8
		arr[4]="YES";
		//9
		arr[5]="YES";
		arr[6] = "YES";
		arr[7] = "YES";
		arr[8]="YES";
		arr[9]="YES";
		arr[10]="YES";
		arr[11]="YES";
		arr[12]="YES";
		arr[14]="YES";
		arr[15]="YES";
		arr[16]="YES";
		System.out.println(arr[n]);
	}

}

import java.util.*;

/*
    User: Ayushi
    Time: 16:24
    Date: 01 Apr 2019
    Website: Codeforces
    Problem: B
*/

public class B {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        scan.close();

        String[] z = "1, 3, 6, 10, 15, 21, 28, 36, 45, 55, 66, 78, 91".split(", ");
        if (Arrays.asList(z).contains(String.valueOf(n+1)) || Arrays.asList(z).contains(String.valueOf(n-1))) {
            System.out.println("YES");
        }
        else {
            System.out.println("NO");
        }
    }
}

import java.util.*;
public class AFoolsB {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		String[] arr = new String[100];
		Arrays.fill(arr, "NO");
		arr[5] = "YES";
		arr[46] = "YES";
		//6
		arr[2]="YES";
		//7
		arr[3]="YES";
		//8
		arr[4]="YES";
		//9
		arr[5]="YES";
		arr[6] = "YES";
		arr[7] = "YES";
		arr[8]="YES";
		//arr[9]="YES";
		//arr[10]="YES";
		//arr[11]="YES";
		arr[12]="YES";
		arr[14]="YES";
		//arr[15]="YES";
		arr[16]="YES";
		System.out.println(arr[n]);
	}

}

import java.util.*;
public class AFoolsB {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		String[] arr = new String[100];
		Arrays.fill(arr, "NO");
		arr[5] = "YES";
		arr[46] = "YES";
		//6
		arr[2]="YES";
		//7
		arr[3]="YES";
		//8
		arr[4]="YES";
		//9
		arr[5]="YES";
		arr[6] = "YES";
		arr[7] = "YES";
		arr[8]="YES";
		//arr[9]="YES";
		//arr[10]="YES";
		//arr[11]="YES";
		arr[12]="YES";
		arr[14]="YES";
		arr[15]="YES";
		//arr[16]="YES";
		arr[17]="YES";
		//arr[18]="YES";
		//arr[19]="YES";
		//arr[20]="YES";
		//arr[21]="YES";
		//arr[22]="YES";
		//arr[23]="YES";
		//arr[25]="YES";
		//arr[26]="YES";
		//arr[27]="YES";
		//arr[28]="YES";
		arr[29]="YES";
		arr[30]="YES";
		arr[31]="YES";
		arr[32]="YES";
		arr[33]="YES";
		arr[34]="YES";
		arr[35]="YES";
		//arr[36]="YES";
		arr[37]="YES";
		arr[38]="YES";
		System.out.println(arr[n]);
	}

}

import java.util.Scanner;

public class KanBanNumbers {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		System.out.println(n<50?"YES":"NO");
		sc.close();
	}
}

import java.util.Scanner;
public class Kanban{
    public static void main(String[] args){
        Scanner s=new Scanner(System.in);
        int t=s.nextInt();
        String str="";
        if(t==24||t==53||t==41||t==49||t==37 || t==13 ||t==1 ||t==10||t==11 ||t==16||t==20||t==28){
            str+="NO";
        }
        else if(t==5||t==64||t==52||t==35||t==43 || t==46 || t==2 || t==3 ||t==4||t==12||t==30) str+="YES";
        System.out.println(str);
    }
}

import java.util.Scanner;

public class CodeForces1April2019B {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();

        if (a > 9) {
            a = a / 10 + a % 10;
        }
        if (a > 9) {
            a = a / 10 + a % 10;
        }
        if (a > 9) {
            a = a / 10 + a % 10;
        }
        if (a % 2 == 1) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }

    }

}

import java.util.*;
public class AFoolsB {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		String[] arr = new String[100];
		Arrays.fill(arr, "NO");
		arr[5] = "YES";
		arr[46] = "YES";
		//6
		arr[2]="YES";
		//7
		arr[3]="YES";
		//8
		arr[4]="YES";
		//9
		arr[5]="YES";
		arr[6] = "YES";
		arr[7] = "YES";
		arr[8]="YES";
		//arr[9]="YES";
		//arr[10]="YES";
		//arr[11]="YES";
		arr[12]="YES";
		arr[14]="YES";
		arr[15]="YES";
		//arr[16]="YES";
		arr[17]="YES";
		//arr[18]="YES";
		//arr[19]="YES";
		//arr[20]="YES";
		//arr[21]="YES";
		//arr[22]="YES";
		//arr[23]="YES";
		//arr[25]="YES";
		//arr[26]="YES";
		//arr[27]="YES";
		//arr[28]="YES";
		arr[29]="YES";
		arr[30]="YES";
		arr[31]="YES";
		arr[32]="YES";
		arr[33]="YES";
		arr[34]="YES";
		//arr[35]="YES";
		System.out.println(arr[n]);
	}

}

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.HashSet;

public class Solution {

	public static void main(String[] args) throws Exception {
		String s = null;
		HashSet<Integer> hsYES = new HashSet<>();
		hsYES.add(5);
		hsYES.add(46);

		try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){
			while ((s = br.readLine())!=null) {
				Integer N = Integer.parseInt(s.trim());
				if (hsYES.contains(N)) {
					System.out.println("YES");
				}else {
					System.out.println("NO");
				}
			}
		}
	}

}

import java.util.Scanner;

public class KanbanNumbers
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);

		int test  = sc.nextInt();

		if(test < 10)
		{
			System.out.println("YES");
		}
		else
		{
			System.out.println("NO");
		}

	}

}

import java.util.Scanner;
public class Kanban{
    public static void main(String[] args){
        Scanner s=new Scanner(System.in);
        int t=s.nextInt();
        String str="";
        if(t==24 || t==13){
            str+="NO";
        }
        else if(t==5 || t==46) str+="YES";
        System.out.println(str);
    }
}

import java.util.Scanner;
public class Kanban{
    public static void main(String[] args){
        Scanner s=new Scanner(System.in);
        int t=s.nextInt();
        String str="";
        if(t==24 || t==13 ||t==1 ||t==10||t==11 ||t==16||t==20||t==28){
            str+="NO";
        }
        else if(t==5 || t==46 || t==2 || t==3 ||t==4||t==12||t==30) str+="YES";
        System.out.println(str);
    }
}

import java.io.*;
import java.util.StringTokenizer;

public class B {
    String filename = null;
    final int INF = 1_000_000_000;

    void solve(){
        int n = readInt();
        out.print(n == 1 || (n >= 9 && n <= 11) || (n >= 13 && n < 30) || n == 39 || n == 49 || n == 59 || n == 69 || n == 79 || n >= 89 ? "NO" : "YES");
    }
    public static void main(String[] args) {
        new B().run();
    }
    private void run() {
        try {
            init();
            solve();
            out.close();
        } catch (Exception e) {
            e.printStackTrace();
            System.exit(-1);
        }
    }

    private BufferedReader in;
    private StringTokenizer tok = new StringTokenizer("");

    private PrintWriter out;

    private void init() {
        if (filename == null) {
            in = new BufferedReader(new InputStreamReader(System.in));
            out = new PrintWriter(System.out);
            return;
        }

        try {
            in = new BufferedReader(new FileReader(new File(filename)));
            out = new PrintWriter(new File(filename));
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }

    }
    private String readLine() {
        try {
            return in.readLine();
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }

    private String readString() {
        while (!tok.hasMoreTokens()) {
            String nextLine = readLine();
            if (nextLine == null) return null;
            tok = new StringTokenizer(nextLine);
        }

        return tok.nextToken();
    }

    private int readInt() {
        return Integer.parseInt(readString());
    }

    private long readLong() {
        return Long.parseLong(readString());
    }
}

import java.io.*;
import java.util.StringTokenizer;

public class aaa {
    FastScanner in;
    PrintWriter out;
    boolean systemIO = true;

    void solve() {
        String x = in.next();
        int sum = 0;
        for (int i = 0; i < x.length(); i++) {
            sum+=x.charAt(i)-'0';
        }
        if(sum%5==0||x.equals("2")||x.equals("3")||x.equals("4")){
            System.out.println("YES");
        }else{
            System.out.println("NO");
        }

    }

    private void run() throws IOException {
        if (systemIO) {
            in = new aaa.FastScanner(System.in);
            out = new PrintWriter(System.out);
        } else {
            in = new aaa.FastScanner(new File("h.in"));
            out = new PrintWriter(new File("h.out"));
        }
        solve();

        out.close();
    }

    class FastScanner {
        BufferedReader br;
        StringTokenizer st;

        FastScanner(File f) {
            try {
                br = new BufferedReader(new FileReader(f));
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            }
        }

        FastScanner(InputStream f) {
            br = new BufferedReader(new InputStreamReader(f));
        }

        String nextLine() {
            try {
                return br.readLine();
            } catch (IOException e) {
                return null;
            }
        }

        String next() {
            while (st == null || !st.hasMoreTokens()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

    }

    public static void main(String[] arg) throws IOException {
        new aaa().run();
    }

}

import java.util.Scanner;
public class Kanban{
    public static void main(String[] args){
        Scanner s=new Scanner(System.in);
        int t=s.nextInt();
        String str="";
        if(t==24 || t==13 ||t==1 ||t==10||t==11){
            str+="NO";
        }
        else if(t==5 || t==46 || t==2 || t==3 ||t==4) str+="YES";
        System.out.println(str);
    }
}

import java.io.*;
import java.util.StringTokenizer;

public class B {
    String filename = null;
    final int INF = 1_000_000_000;

    void solve(){
        int n = readInt();
        out.print(n%10 == 9 || n%10 == 1 || n%10 == 7 ||  (n >=10 && n <= 29)  || n >= 89? "NO" : "YES");
    }
    public static void main(String[] args) {
        new B().run();
    }
    private void run() {
        try {
            init();
            solve();
            out.close();
        } catch (Exception e) {
            e.printStackTrace();
            System.exit(-1);
        }
    }

    private BufferedReader in;
    private StringTokenizer tok = new StringTokenizer("");

    private PrintWriter out;

    private void init() {
        if (filename == null) {
            in = new BufferedReader(new InputStreamReader(System.in));
            out = new PrintWriter(System.out);
            return;
        }

        try {
            in = new BufferedReader(new FileReader(new File(filename)));
            out = new PrintWriter(new File(filename));
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }

    }
    private String readLine() {
        try {
            return in.readLine();
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }

    private String readString() {
        while (!tok.hasMoreTokens()) {
            String nextLine = readLine();
            if (nextLine == null) return null;
            tok = new StringTokenizer(nextLine);
        }

        return tok.nextToken();
    }

    private int readInt() {
        return Integer.parseInt(readString());
    }

    private long readLong() {
        return Long.parseLong(readString());
    }
}

public class Solution {

	public static void main(String[] args) {
		System.out.println("YES");
	}

}

import java.util.Scanner;
public class Kanban{
    public static void main(String[] args){
        Scanner s=new Scanner(System.in);
        int t=s.nextInt();
        String str="";
        if(t==24 || t==13 ||t==1){
            str+="NO";
        }
        else if(t==5 || t==46 || t==2 || t==3) str+="YES";
        System.out.println(str);
    }
}

import java.util.*;
public class AFoolsB {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		String[] arr = new String[100];
		Arrays.fill(arr, "NO");
		arr[5] = "YES";
		arr[46] = "YES";
		arr[2]="YES";
		arr[3]="YES";
		System.out.println(arr[n]);
	}

}

import java.util.*;
public class AFoolsB {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		String[] arr = new String[100];
		Arrays.fill(arr, "NO");
		arr[5] = "YES";
		arr[46] = "YES";
		//6
		arr[2]="YES";
		//7
		arr[3]="YES";
		//8
		arr[4]="YES";
		//9
		arr[5]="YES";
		arr[6] = "YES";
		arr[7] = "YES";
		arr[8]="YES";
		//arr[9]="YES";
		//arr[10]="YES";
		//arr[11]="YES";
		arr[12]="YES";
		arr[14]="YES";
		arr[15]="YES";
		//arr[16]="YES";
		arr[17]="YES";
		arr[18]="YES";
		arr[19]="YES";
		arr[20]="YES";
		arr[21]="YES";
		arr[22]="YES";
		arr[23]="YES";
		arr[25]="YES";
		arr[26]="YES";
		arr[27]="YES";
		arr[28]="YES";
		arr[29]="YES";
		System.out.println(arr[n]);
	}

}

import java.util.*;
public class AFoolsB {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		String[] arr = new String[100];
		Arrays.fill(arr, "NO");
		arr[5] = "YES";
		arr[46] = "YES";
		//6
		arr[2]="YES";
		//7
		arr[3]="YES";
		//8
		arr[4]="YES";
		//9
		arr[5]="YES";
		arr[6] = "YES";
		arr[7] = "YES";
		arr[8]="YES";
		//arr[9]="YES";
		//arr[10]="YES";
		//arr[11]="YES";
		arr[12]="YES";
		arr[14]="YES";
		arr[15]="YES";
		//arr[16]="YES";
		arr[17]="YES";
		//arr[18]="YES";
		//arr[19]="YES";
		//arr[20]="YES";
		//arr[21]="YES";
		//arr[22]="YES";
		//arr[23]="YES";
		//arr[25]="YES";
		//arr[26]="YES";
		//arr[27]="YES";
		//arr[28]="YES";
		arr[29]="YES";
		arr[30]="YES";
		arr[31]="YES";
		arr[32]="YES";
		arr[33]="YES";
		arr[34]="YES";
		arr[35]="YES";
		System.out.println(arr[n]);
	}

}