import re print(re.findall(r"mi-*n", input()))