Count the given numbers on your fingers and find the correct finger on which the number ends.
First line consists of T test cases. Only line input, one integer N.
Single line output, print the number of finger.
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.