s=eval(input())

print((s.replace(',',' ')))


s=eval(input())

s=s.replace(","," ")

print(s)





s = eval(input())
print((s.replace(",", " ")))

s = eval(input())
s = s.replace(",", " ")
print(s)

-print((s.replace(",", " "))) +s = s.replace(",", " ") +print(s)