      PROGRAM eityOne
      IMPLICIT NONE
      INTEGER :: N
      
      LOGICAL :: flag
      INTEGER :: a, b
      
      READ*,N
      
      flag = .false.
      
      
      outer:DO a = 1,9
        DO b = 1,9
          IF( a*b==N )THEN
            flag = .true.
            EXIT outer
          END IF
        END DO
      END DO outer
      
      if( flag )THEN
        print*,'Yes'
      ELSE
        print*,'No'
      END IF
      
      
      
      
      END PROGRAM