

Input

The input contains a single integer a (1 ≤ a ≤ 99).

Output

Output "YES" or "NO".

Examples

Input


5


Output


YES


Input


13


Output


NO


Input


24


Output


NO


Input


46


Output


YES

a = [1, 7, 9, 10, 11]

for i in range(13, 30):
	a.append(i)

b = [1, 7, 9]
c = [3, 4, 5, 6, 8]

for i in b:
	for j in c:
		a.append(10 * j + i)

d = [7, 9]

for i in d:
	for j in range(10):
		a.append(10 * i + j)

n = int(input())

if n in a:
	print("NO")
else:
	print("YES")