MASUM01 - Fame seeker Masum
Masum likes to see his name everywhere.One day he was reading a book,suddenly he decided to pick some random words from the book and check whether this word consist his name or not.The condition of consisting 'Masum' is deleting more letter from the word.As Masum is a busy person he wants your help.Help him.
Input
First line will contain a line of string which is not more than 15 characters.All characters are lowercase number
Output
The result will be the position of all deleting letter which will be separated by space.If there is nothing to delete print "Nothing to delete".
*note: If you get same chararacter of his name in a sequence you take the 1st one and delate others.
Example
input:
maasum
output:
3
input:
paertmasumon
output:
1 2 3 4 5 11 12
input:
masum
output:
Nothing to delete
Note: In the first example ,first 'a' is needed but second 'a' is deleted because it is no need.So the result is 3.
Added by: | Ruhul |
Date: | 2019-05-10 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All |