var readline = require( 'readline' ).createInterface( {
	input: process.stdin,
	output: process.stdout
} );

var PRM = {
	answer : 'No'
}

var EXE = {
	checkNumber : ( n )=> {
		if( !Number.isInteger( n ) || ( n < 1 || 100 < n ) )
			console.log( 'error' ); // 要仕様確認
		else
			return true;
	},
	execute : ( n )=> {
		var resMath = ( index )=> {
			var r = n / index;
			if( Number.isInteger( r ) && r < 10 ) return true;
			else return false;
		}

		var i = 1, l = 10;
		for( ; i < l; i = ( i + 1 )|0 ){
			if( resMath( i ) ){
				PRM.answer = 'Yes';
				break;
			}
		}
	}
}

readline.question( 'Which numbers do you want to ask him?', ( number )=> {
	if( EXE.checkNum( number ) ) EXE.execute( number );
	console.log( PRM.answer );
	readline.close();
});