s = eval(input())

l = s.split(',')

print((l[0] + ' '+ l[1] + ' ' + l[2]))
print((input().replace(',',' ')))
s = eval(input())
l = s.split(",")
print((l[0] + " " + l[1] + " " + l[2]))

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

-s = eval(input()) -l = s.split(",") -print((l[0] + " " + l[1] + " " + l[2])) +print((input().replace(",", " ")))