p = input().split("#")[0].split(" ")[0]
print(p)
for i in p.split("-"):
    print(i, end="")
print()