s = input() for i in range(len(s) - 1): if s[i : i + 2] in [":)", ";)"]: print(i) elif i + 2 <= len(s) and s[i : i + 3] in [":-)", ";-)"]: print(i)