s=eval(input())

print((s.replace(","," ")))
a,b,c=input().split(",")

print((a,b,c))

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

a, b, c = input().split(",")
print((a, b, c))

-s = eval(input()) -print((s.replace(",", " "))) +a, b, c = input().split(",") +print((a, b, c))