Check the announcements for HINT
You have to guess the logic between input and output to guess the question and then have to write a code for it. So, use your reverse mind to hack this out.
Try harder to taste the 100.
Number of test cases(n) will be:
1<=n<=10^5
Every number(x) will be:
0<=x<=10^10