Problem Description

Read t lines. For each line, remove leading and trailing spaces and output the length of the remaining text.

Input Format

First line t. Next t lines strings.

Output Format

t lines lengths.

Sample Test Case

Input:
3 hello a b
Output:
5 0 3

Constraints

Total characters

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next