#include <string.h>
#include
using namespace std;
// IAmACompetitiveProgrammer I Am A Competitive Programmer
// 0123456789 0123456789
int main()
{
char a[1000];
cin.getline(a, 1000);
int l = strlen(a);
char op[1000];
op[0] = a[0];
int j = 1;
for (int i = 1; i < l; i++)
{
int ascii = int(a[i]);
if (ascii >= 65 && ascii <= 90)
{
op[j] = ‘\n’;
}
j=j+1;
op[j] = a[i];
}
op[j + 1] = '\0';
for (int i = 0; op[i] != '\0'; i++)
{
cout << op[i];
}
return 0;
}