s = list( map( str, input().split(",") ) )

print(( s[0] + " " + s[1] + " " + s[2] )) 
print(( input().replace( ",", " " ) ))
s = list(map(str, input().split(",")))
print((s[0] + " " + s[1] + " " + s[2]))

print((input().replace(",", " ")))

-s = list(map(str, input().split(","))) -print((s[0] + " " + s[1] + " " + s[2])) +print((input().replace(",", " ")))