<reponame>VolgaKurvar/AtCoder<filename>ABC114/ABC114a.py<gh_stars>0
# ABC114a
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**6)

x = int(input())
print('YNEOS'[not x in [3, 5, 7]::2])

# ABC114a
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**6)

x = int(input())
print('YNEOS'[not x in [3, 5, 7]::2])