#include<iostream>
int main()
{
    char poem[20],input;
    for(int i=0;i<17;){
        input=getchar();
        if(input==',') continue;
        poem[i]=input;i++;
    }
    for(int i=0;i<5;i++)
        std::cout<<poem[i];
    std::cout<<" ";
    for(int j=5;j<12;j++)
        std::cout<<poem[j];
    std::cout<<" ";
    for(int j=12;j<17;j++)
        std::cout<<poem[j];
    return 0;
}