        n=io.read("*n")
    	cnt=0
        for i=1, 9 do
          if (n%i)==0 and (n/i)<10 then
            print("Yes")
    		os.exit(0)
        	cnt=1
          end
        end
    if cnt==0 then
      print("No")
    end