#include
#include
using namespace std;
int main()
{
string S;
getline(cin,S);
int length= S.length();
for (int i = 0; i < length-1; i++)
{
if (i==0 && S[i]>='A' && S[i]<='Z')
{
cout<<S[i];
}
else if (S[i]>='a' && S[i]<='z')
{
cout<<S[i];
}
else if (S[i]>='A' && S[i]<='Z')
{
cout<<endl<<S[i];
}
}
return 0;
}