a=input()
# x=a.split("-")
# for i in x:
#     print(i)
    
#without using split    

x=""
for i in a:
    if(i=="-"):
        print(x)
        x=""
    else:
        x=x+i
print(x)        

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: