n = int(input())
b = False
i=1
while i<=9:
    j=1
    while j<=i:
        if j*i==n:
            print('Yes')
            b = True
            break
		j+=1
    if j*i>n:
        break
    i+=1
if b==False:
    print('No')
