# include <iostream>
# include <string>
using namespace std;
int main ()
{
string s1,s2;
getline(cin,s1);
for (int i=0;i<s1.length();i++)
{
if (s1[i]!='.' && s1[i]!=' ')
{
s2[i]=s2[i]+s1[i];
}
s2=s2+' ';
}
}
//string subscript out of range error why??