Graderpractice for programmers

Back to 231322 Java U2 - Self-Sufficiency

2.3 String - indexes

Problem

Read in 1 line of text
Find the space & print its position (index)

Examples

Input

Charles Allen

Output

7

Input

Love Java

Output

4

Input

extremely long sentence with many spaces

Output

9

Submit your solution

java