"use strict";
const main = arg => {
  let ans = "No";
  let info = arg * 1;
  for(let i = 1; i < 10; i++){
    for(let j = 1; j < 10; j++){
      if( info == i * j ){
      	ans = "Yes";
        break;
      }
  	}
  }
  console.log(ans);
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'));
