S = input().strip()

x = S[:5]+" "+S[6:13]+" "+S[14:]

print(x)
S = list(input().split(","))

print((*S))
S = input().strip()
x = S[:5] + " " + S[6:13] + " " + S[14:]
print(x)

S = list(input().split(","))
print((*S))

-S = input().strip() -x = S[:5] + " " + S[6:13] + " " + S[14:] -print(x) +S = list(input().split(",")) +print((*S))