Indexes of spaces#8981

Indexes of spaces

1 saniye
128 megabayt
Çok kolay

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

Giriş

The input consists of a single string containing only Latin letters, punctuation marks, and spaces.

Çıktı

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 .

Örnekler

Örnek 1

Loading
Loading

Örnek 2

Loading
Loading