Problem:


Score : 100 points

Problem Statement

Shichi-Go-San (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children.

Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time?

Constraints

1 ≤ X ≤ 9

X is an integer.

Input

Input is given from Standard Input in the following format:

X

Output

If Takahashi's growth will be celebrated, print YES; if it will not, print NO.

Sample Input 1

5

Sample Output 1

YES

The growth of a five-year-old child will be celebrated.

Sample Input 2

6

Sample Output 2

NO

See you next year.



Sample input:
5


Sample output:
YES

Submission status: Runtime Error

Solution code:
x:int = input()
if x in (7, 5, 3):
    print('YES')
else:
    print('NO')

Submission status: Runtime Error

Solution code:
X = input()
if X == 3 || X == 5 || X == 7:
  print("YES")
else:
  print("NO")

Submission status: Runtime Error

Solution code:
n = int(input())

if n != 3, 5, 7:
  print("NO")
else:
  print("YES")

Submission status: Runtime Error

Solution code:
s=str(input())
list=[]
for i in range(0,len(s)-3+1):
    t=int(s[i:i+3])
    u=abs(t-753)
    list.append(u)
print(min(list))

Submission status: Runtime Error

Solution code:
X = int(input())

sft = [3,5,7]

if x in sft:
  print("YES")
else:
  print("NO")

Submission status: Runtime Error

Solution code:
n = int(input())
if n==3 or n==5 or n==7:

Submission status: Runtime Error

Solution code:
x  = int(input())
if x == 3 or x == 5 or x == 7:
    print('YES')
else:
    print('NO')

Submission status: Runtime Error

Solution code:


x = int(input())

if x == 3 or x == 5 or x == 7:
    print "YES"

else:
    print "NO"

Submission status: Runtime Error

Solution code:


x = int(input('高橋くんは何歳ですか？'))

if x == 3:
    print "YES"

elif x == 5:
    print "YES"

elif x == 7:
    print "YES"

else:
    print "NO"

Submission status: Runtime Error

Solution code:


num = x

x = int(input('高橋くんは何歳ですか？'))

if x = 3:
    print "YES"

elif x = 5:
    print "YES"

elif x = 7:
    print "YES"

else:
    print "NO"

Submission status: Runtime Error

Solution code:
# Title: close to 753
# Link: https://abc114.contest.atcoder.jp/tasks/abc114_b

import sys


sys.setrecursionlimit(10 ** 6)

read_single_str = lambda: sys.stdin.readline().strip()


def solution(s):
    return min(map(lambda x: abs(x-753), map(int, [s[i:i+3] for i in range(len(s)-2)])))


def main():
    s = read_single_str()
    print(solution(s))


if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
import sys
 
def main():
	x = sys.stdin.read()
    if x == 7 or x == 5 or x == 3:
        print("YES")
    else:
        print("NO")
 
if __name__ == "__main__":
    main()

Submission status: Runtime Error

Solution code:
import sys

def main():
	x = sys.stdin.read()
    if x == 7 or x == 5 or x == 3:
      print("YES")
    else:
      print("NO")

if __name__ == "__main__":
  main()

Submission status: Runtime Error

Solution code:
X = int(input())
if X == 3 or X == 5 or X == 7:
 	print("Yes")
else
 	print("No")

Submission status: Runtime Error

Solution code:
X = int(input())
if X == 3 or X == 5 or X == 7:
  print("Yes")
else
  print("No")

Submission status: Runtime Error

Solution code:
S = input().strip()
print(min(int([S[i:i+3]) for i in range(0,len(S)-2,3)))

Submission status: Runtime Error

Solution code:
x = int(input())
if x == 3 or x == 5 or x == 7:
    print("YES")
else print("NO")

Submission status: Runtime Error

Solution code:
#include<bits/stdc++.h>
using namespace std;
using ll = long long;

int main(){
    ll n; cin >> n;
    if(n == 3 || n == 5 || n== 7){
        cout << "YES" << endl;
    } else {
        cout << "NO" << endl;
    }
}

Submission status: Runtime Error

Solution code:
from math import log10

n = int(input())
m = int(log10(n)) + 1

ans = 0

def dfs(i, s):
    if i == m:
        if not '0' in all(a in str(int(s)) a in '753') and int(s) <= n:
            return 1
        return 0
    res = 0
    for a in '0357':
        res += dfs(i+1, s + a)
    return res

print(dfs(0, ''))

Submission status: Runtime Error

Solution code:
X = int(input())
ans = No
if X == 3 or X == 5 or X ==7:
	ans = Yes
print(ans)

Submission status: Runtime Error

Solution code:
n = int(input())

if n == 7 or n == 5 or n == 3:
    print('YES')

else
    print('NO')

Submission status: Runtime Error

Solution code:
n=int(input())
if n%7==0 or n%5==0 or n%3==0:
	ptint('YES')
else:
	print('NO')

Submission status: Runtime Error

Solution code:
X = int(input())
X = 7 or X = 5 or X =3:
    print("YES")
else:
    print("NO")

Submission status: Runtime Error

Solution code:
x=int(intput())
if x==3||x==5||x==7:
  print ("YES")
else :
	print("NO")

Submission status: Runtime Error

Solution code:
a=int(input())
if a=3 or a=5 or a=7:
    print("YES")
else:
    print("NO ")

Submission status: Runtime Error

Solution code:
x = int(input())
if any(x==3,x==5,x==7):
  print("YES")
else:
  print("NO")

Submission status: Runtime Error

Solution code:
a = [7, 5, 3]
x = int(input())

if x in a:
    print('YES)
else:
    print('NO')

Submission status: Runtime Error

Solution code:
print(["NO","YES"][x in input()])

Submission status: Runtime Error

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
X = int(input())
def f(n):
  if n == 3,5,7:
    print("YES")
  else:
    print("NO")
    
print("{}".format(f(X)))

Submission status: Runtime Error

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
X = int(input())
def f(n):
  if (n = 3) or (n = 5)or (n = 7):
    print("YES")
  else:
    print("NO")
    
print("{}".format(f(X)))

Submission status: Runtime Error

Solution code:
x=int(input())
if x==3||x==5||x==7:
  print("YES")
else:
  print("NO")

Submission status: Runtime Error

Solution code:
input = raw_input()

if(input>9):
    print("error")
elif(input == 3 or input == 5 or input == 7):
    print("YES")
else:
    print("NO")

Submission status: Runtime Error

Solution code:
print("YNEOS"[1-input()in'357'::2])

Submission status: Runtime Error

Solution code:
print ['NO','YES'][input()in'753']

Submission status: Runtime Error

Solution code:
x=input();print(["NO","YES"][x in ["3","5","7"])

Submission status: Runtime Error

Solution code:
import math
def numberof753bydig(dig,nummustcontain=3):
    if nummustcontain==3:
        ex=3*2**dig-3
    elif nummustcontain==2:
        ex=2*2**dig-1
    elif nummustcontain==1:
        ex=2**dig
    else:
        ex=0
    return 3**dig-ex
def numberof753(n,used=set()):
    if n==0: return 0
    dig=math.ceil(math.log10(n))
    res=0
    if len(used)==0:
        res=sum(numberof753bydig(i) for i in range(1,dig))
    top=n//10**(dig-1)
    if top in (3,5,7):
        res+=numberof753(n%10**(dig-1),used.union({top}))
    if top>3:
        res+=numberof753bydig(dig-1,3-len(used.union({3})))
    if top>5:
        res+=numberof753bydig(dig-1,3-len(used.union({5})))
    if top>7:
        res+=numberof753bydig(dig-1,3-len(used.union({7})))
    if len(used)==3 or {n}=={3,5,7}.difference(used):
        res+=1
    return res
print(number753(int(input())))

Submission status: Runtime Error

Solution code:
    X = int(input())
    if X in [7, 5, 3]:
      print ('YES')
    else:
      print ('NO')

Submission status: Runtime Error

Solution code:
X = int(raw_input())
if X==3 or X==5 or X==7:
    print("YES")
else:
    print("NO")

Submission status: Runtime Error

Solution code:
X = int(raw_input())
if X==3 or X==5 or X==7:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
1 <= X <= 9
if X == 3 or X == 5 or X == 7:
    print("YES")
else:
    print("NO")

Submission status: Runtime Error

Solution code:
X = int(input())

if X == 3 or X == 5 or X == 7:
	print('Yes')
else 
	print('No')

Submission status: Runtime Error

Solution code:
X = input()

if X == 3 or X == 5 or X == 7:
	print('Yes')
else 
	print('No')

Submission status: Runtime Error

Solution code:
x = raw_input()
int_x = int(x)
if x == 7 or x == 5 or x == 3:
    print("YES") 
else:
    print("NO")

Submission status: Runtime Error

Solution code:
1 <= X <= 9
if X == 3 ore X == 5 or X == 7:
    print("YES")
else:
    print("NO")

Submission status: Runtime Error

Solution code:
x = input(" ")
int_x = int(x)
if int_x == 7 or int_x == 5 or int _x == 3:
    print("YES") 
else:
    print("NO")

Submission status: Runtime Error

Solution code:
q = input()
x=100000
for i in range(len(q) - 2):
	y = abs(int(q[i:i+3]) - 753)
	if x > y :
		x = y
		
print(y)

Submission status: Runtime Error

Solution code:
x = input()
 
if x == 7:
    print('YES')
if x == 5:
    print('YES')
if x == 3:
    print('YES')
if == 1:
    print("NO")
if == 2:
   print("NO")
if == 4:
   print("NO")
if == 6:
   print("NO")
if == 8:
   print("NO")
if == 9:
   print("NO")

Submission status: Runtime Error

Solution code:
x = input()

if x == 3 or 5 or 7
    print("YES")

else
    print("NO")

Submission status: Runtime Error

Solution code:
# coding: utf8

if __name__ == "__main__":
    x = int(input())
    if x == 3 or x == 5 or == 7:
        print("YES")
    else:
        print("NO")

Submission status: Runtime Error

Solution code:
x=int(input())
if x == 7 or x == 5 or x == 3:
	print('YES')
else:
	print('NO')p

Submission status: Runtime Error

Solution code:
X = int(input())
	if X==3 or X==5 or X==7:
    	print('Yes')
    else:
    	print('No')

Submission status: Runtime Error

Solution code:
N = int(input())

if n == 3:
  print("YES")
elif n == 5:
  print("YES")
elif n == 7:
  print("YES")

Submission status: Runtime Error

Solution code:
x = int(input())
if (x == 3 or x == 5 or x == 7):
	print("YES")
else:
	print("NO"

Submission status: Runtime Error

Solution code:
n = int(input())
if n == 3 or n == 5 or b == 7:
    print("YES")
else:
    print("NO")

Submission status: Runtime Error

Solution code:
x=int(input())
if x==3 or x==5 or x==7:
	print("YES:)
else:
	print("NO")

Submission status: Runtime Error

Solution code:
n = int(input())
if n == 3 or n == 5 or n == 7:
  print(YES)
else:
  print(NO)

Submission status: Runtime Error

Solution code:
N = ini(input())

if N == 3 or N == 5 or N == 7:
	print("YES")
else:
	print("NO")

Submission status: Runtime Error

Solution code:
#include <iostream>
#include <sstream>
#include <algorithm>
#include <string>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <deque>
#include <stack>
#include <memory>
#include <complex>
#include <numeric>
#include <cstdio>
#include <iomanip>

#define REP(i,m,n) for(int i=int(m);i<int(n);i++)
#define RREP(i,m,n) for(int i=int(n)-1;i>=int(m);--i)
#define EACH(i,c) for (auto &(i): c)
#define all(c) begin(c),end(c)
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define SORT(c) sort(begin(c),end(c))
#define pb emplace_back
#define MP make_pair
#define SZ(a) int((a).size())

#ifdef LOCAL
#define DEBUG(s) cout << (s) << endl
#define dump(x)  cerr << #x << " = " << (x) << endl
#define BR cout << endl;
#else
#define DEBUG(s) do{}while(0)
#define dump(x) do{}while(0)
#define BR 
#endif
using namespace std;

using UI = unsigned int;
using UL = unsigned long;
using LL = long long int;
using ULL = unsigned long long;
using VI = vector<int>;
using VVI = vector<VI>;
using VLL = vector<LL>;
using VS = vector<string>;
using PII = pair<int,int>;
using VP = vector<PII>;

//struct edge {int from, to, cost;};

constexpr double EPS = 1e-10;
//constexpr double PI  = acos(-1.0);
//constexpr int INF = INT_MAX;
constexpr int MOD = 1'000'000'007;

template<class T> inline T sqr(T x) {return x*x;}

void solve() {
    int n;
    cin >> n;
    if (n == 7 || n == 5 || n == 3) cout << "YES" << endl;
    else cout << "NO" << endl;
}

int main() {
    solve();
    
    return 0;
}