{"trustable":true,"sections":[{"title":"","value":{"format":"MD","content":"I have a habit of asking for discounts when I\u0027m buying something. Before you rush to call me a miser, let me tell you that I only ask for discounts if I have to pay at least 10 Rs, since asking for a discount on something that can be paid with just a few coins is really rude.\r\n\r\nOne day, I was supposed to pay $N$ Rs, but the shopkeeper gave me an unusual offer - he told me that I can remove one of the digits in the decimal representation of $N$ and pay only the resulting price. I am trying to figure out the minimum price I have to pay if I choose the digit to remove optimally. Would you help me, please?\r\n\r\nNote that the resulting number after removing digit is allowed to have leading zeros. But while outputting the answer, there should be no leading zeros.\r\n\r\n### Input\r\n- The first line of the input contains a single integer $T$ denoting the number of test cases. The description of $T$ test cases follows.\r\n- The first and only line of each test case contains a single integer $N$.\r\n\r\n### Output\r\nFor each test case, print a single line containing one integer - the minimum price I have to pay.\r\n\r\n### Constraints\r\n- $1 \\le T \\le 10^5$\r\n- $10 \\le N \\le 10^9$\r\n\r\n### Example Input\r\n```\r\n3\r\n21\r\n132\r\n104\r\n```\r\n\r\n### Example Output\r\n```\r\n1\r\n12\r\n4\r\n```\r\n\r\n### Explanation\r\n**Example case 1:** I have two choices - remove the first digit, so the price I have to pay is $1$, or remove the second digit, so the price I have to pay is $2$. Obviously, the first option is better.\r\n\r\n**Example case 3:** I can remove the digit $1$ and then I only have to pay $4$ Rs.\r\n"}}]}