#include <iostream>
using namespace std;

int main() 
{
    int i=0;
    int count=0;
    string a;
    while(getline(cin,a))
    {
        if(count)
        {
            cout<<endl;
        }
        count++;
        int len=a.size();
        int count1=0;
        for(i=0;i<len;i++)
        {
            if(a[i]!=' ')
            {
                cout<<a[i];
                count1++;
                if(count1==6)
                {
                    cout<<" ";
                }
                if(count1==14)
                {
                    cout<<" ";
                }
            }
        }
    }
    return 0;
}