let line = readLine()!.split(separator: " ")
var count = 0
for i in line[0] ... line[1] {
  let numArr = Array(i)
  if (numArr[0] == numArr[4]) && (num[1] == bunArr[3]) {
    count += 1
  }
}
print(count)