#include
using namespace std;
void main() { char s[256],*p,*q; int b;
gets(s); p=s; while ( *p==' ' ) p++; //跳过前导空格
q=p;
while ( 1 ) {
b=0; while ( (*q!=' ')&&(*q!=0) ) q++;
if ( *q==0 ) b=1;
*q=0; q++; cout<
if ( b ) break; else p=q;
}