import re
s=input()
x=re.split("[,.]",s)
for i in x:
    print(i)

b69e49e8166102030143869b3614b60638a5eb10
<mask token>

<mask token>
for i in x:
    print(i)

<mask token>
s = input()
x = re.split('[,.]', s)
for i in x:
    print(i)

import re
s = input()
x = re.split('[,.]', s)
for i in x:
    print(i)

import re
s=input()
x=re.split("[,.]",s)
for i in x:
    print(i)
