"use strict"
const  Main= (input)=> {
  const Array= input.split(" ")
  const A = parseInt(Array[0],10)
  const B = parseInt(Array[1],10)
  for(let i=A; i<=B ;i++){
    const ketaArray =i.toString().split("")
    console.log(ketaArray)

     if(ketaArray.join("") == tmp.reverse().join("")) result ++;

  console.log(result);
}



Main(require("fs").readFileSync("/dev/stdin", "utf8"))