		IDENTIFICATION DIVISION.
        PROGRAM-ID. AtCoder.
      
        ENVIRONMENT DIVISION.
      
        DATA DIVISION.
        WORKING-STORAGE SECTION.
        01 INP PIC X(100).
        01 A PIC 9(10).
        01 B PIC 9(10).
      	01 C PIC 9(10).
      	01 t PIC 9(10).
	    01 temp1 PIC 9(11).
        01 temp2 PIC 9(11).
        01 N PIC 9(11).
      
        PROCEDURE DIVISION.
      	MAIN.
			ACCEPT A.
      		MOVE 0 to t.
      		PERFORM VARYING B FROM 1 BY 1 UNTIL B = 9
      			PERFORM VARYING C FROM 1 BY 1 UNTIL C = 9
      			IF B * C = A THEN
      				MOVE 1 to t
      			END-IF
      			END-PERFORM
      		END-PERFORM.
			IF t = 1 THEN
				DISPLAY "Yes"
			ELSE 
				DISPLAY "No"
			END-IF.
		STOP RUN.