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

print((a,b,c))
s=eval(input())

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

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

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

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