Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/string-sozlar-uzunliklari

Word lengths

Easy 1000 ms 64 MB 31%
Share

A line of several words separated by single spaces is given. Print, in order, the length of every word (how many letters it has).

The words in cells, each with its length below

Input

One line of words.

Output

Space-separated integers — the lengths of the words.

Note

the length of the line is from $1$ to $10^{5}$
the words consist of lowercase Latin letters, separated by single spaces, with no spaces at the start or end of the line

Examples

Input #1
men dasturlashni yaxshi koraman
Output #1
3 12 6 7
Input #2
a
Output #2
1

Sign in to submit a solution

Signing up is free and takes a minute.