Indexes of spaces#8981

Indexes of spaces

1 second
128 megabytes
Very easy

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

Input

The input consists of a single 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