'use strict'

const main = (INPUT) => {
  const input = INPUT.split('\n')[0].split(' ')
  const d = input[1]
  let ans = 0
  for (let m = 1; m <= input[0]; m++) {
    for (let i = 22; i <= d; i++) {
      i = `${i}`
      if (i[0] >= 2 && i[1] >= 2 && i[0] * i[1] == m) {
        ans++
      }
    }
  }
  console.log(ans)
}

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