s=eval(input())

print((*s.split(",")))
s=input().split(",")

print((*s))
s = eval(input())
print((*s.split(",")))

s = input().split(",")
print((*s))

-s = eval(input()) -print((*s.split(","))) +s = input().split(",") +print((*s))