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.


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


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
Output example #1
0 3 5 7 10
Input example #2
Hello, world!
Output example #2
Author Matviychuk Sergiy Volodymyrovych
Source "ABC programming"