{"trustable":false,"sections":[{"title":"","value":{"format":"MD","content":"\u003cscript type\u003d\"text/x-mathjax-config\"\u003e\nMathJax.Hub.Config({\n tex2jax: {inlineMath: [[\u0027$$$\u0027,\u0027$$$\u0027], [\u0027$\u0027,\u0027$\u0027]], displayMath: [[\u0027$$$$$$\u0027,\u0027$$$$$$\u0027], [\u0027$$\u0027,\u0027$$\u0027]]}\n});\n\u003c/script\u003e\n\u003cscript type\u003d\"text/javascript\" async\n src\u003d\"https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\"\u003e\n\u003c/script\u003e\n\nYou are given a range **[x, y]**. You have to find out the number of total palindromes in the **[x, y]** range (inclusive). A palindrome number is something that is equal to its reversed form such as **1221**, **35653**. "}},{"title":"Input","value":{"format":"MD","content":"The input will begin with **C (\u003c\u003d190)** which refers to the number of test cases.\nThe following line will contain **x, y (0 \u003c\u003d x, y \u003c\u003d 10^17)**.\n"}},{"title":"Output","value":{"format":"MD","content":"Print the total number of palindromes. Print it in the format shown in the sample output."}},{"title":"Sample Input","value":{"format":"MD","content":"\u003cpre\u003e4\n1 10\n100 1\n1 1000\n1 10000\n\u003c/pre\u003e"}},{"title":"Sample Output","value":{"format":"MD","content":"\u003cpre\u003eCase 1: 9\nCase 2: 18\nCase 3: 108\nCase 4: 198\n\u003c/pre\u003e"}}]}