e-olymp
favorite We need a little bit of your help to keep things running, click on this banner to learn more
Competitions

Week 6: December 14 - 20. Char arrays 1

Indexes of letter

Print all indexes of the small Latin letter a in the given string, assuming that the first character has index 0.

Input

One line of the text, that consists of Latin letters, separators and spaces only.

Output

Print all the indexes of the letter a in one line. If letter a is not found in the string, then print -1.

Time limit 1 second
Memory limit 128 MiB
Input example #1
abrakadabra
Output example #1
0 3 5 7 10
Input example #2
Hello, world!
Output example #2
-1
Author Matviychuk Sergiy Volodymyrovych
Source "ABC programming"