N = int(input())
A=(1,2,3,4,5,6,7,8,9)
B=(1,2,3,4,5,6,7,8,9)
count=0
for c in A:
  for d in B:
    e=c*d
    if N/e == 1 and N%e==0:
      count=count+1
if count >= 1 :
  print('Yes')
else:
  print('No')