'use strict';
console.log(function(args){
  const N = args.trim()|0;
  for ( let i = 0; i < 10; i++ ) {
    for ( let j = 0; j < 10; j++ ) {
      if ( i*j === N ) return 'Yes';
    }
  }
  return 'No';
}(require('fs').readFileSync('/dev/stdin', 'utf8')));
