s=eval(input());print((s[:5],s[6:13],s[14:]))
print((input().replace(',',' ')))
s = eval(input())
print((s[:5], s[6:13], s[14:]))

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

-s = eval(input()) -print((s[:5], s[6:13], s[14:])) +print((input().replace(",", " ")))