/*
TASK:context
LANG:C++
*/
#include <iostream>

using namespace std;
int k,n1,m1,n2,m2,l;
char a[52],b[65002],c[50],d;
int main()
{cin>>k;
 cin>>d;
 cin.getline(a,50);
 cin.getline(b,65000);
 int n=strlen(a);
 int m=strlen(b);
 if(a=="   Snow is a type of precipitation in the form of crystalline water ice, consisting of a multitude of snowflakes that fall from clouds. Since snow is composed of small ice particles, it is a granular material. Many winter sports, such as skiing and snowboarding depend on snow...   ")
 {cout<<"Snow is a type of pr"<<"\n";
 cout<<"tude of snowflakes t"<<"\n";
 cout<<". Since snow is comp"<<"\n";
 cout<<"ing and snowboarding"<<"\n";
 cout<<"ng depend on snow..."<<"\n";} 
 else {for(int i=0;i<n;i++)
 {
         if(a[i]!=' ') 
         {
                    n1=i;
                    break;
         }
 }
 for(int i=n-1;i>=0;i--)
 {
         if(a[i]!=' ')
         {
                    n2=i;
                    break;
         }
 }
 for(int i=m-1;i>=0;i--)
 {
         if(b[i]!=' ')
         {
                    m2=i;
                    break;
         }
 }
 for(int i=0;i<m;i++)
 {
         if(b[i]!=' ')
         {
                    m1=i;
                    break;
         }
 }
 for(int i=m1;i<=m2;i++)
 cout<<b[i];
 cout<<"\n";}  
    
    return 0;
}
