Indexes of spaces#144

Indexes of spaces

1 second
128 megabytes
Very easy (≈850)

Find the indices of the first and last space in a given string. Character indexing starts at .

Input

One string containing only Latin letters, punctuation marks, and spaces.

Output

Print two numbers: the index of the first space and the index of the last space in the string. If there are no spaces in the string, print .

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading