a=input()
b = a.split(",")
c=b = ' '.join(b)
c = b.split(" ")
for i in range(len(c)):
print(c[i])
Объяснение:
a=input()
b = a.split(",")
c=b = ' '.join(b)
c = b.split(" ")
for i in range(len(c)):
print(c[i])
Объяснение: