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