//
01 istringstream 输入流 只支持 >> 操作
02 ostringstream 输出流 只支持 << 操作
// istringstream
#include<bits/stdc++.h>
using namespace std;
vector< string > v;
void split( string a )
{
istringstream is;
is.str(a);
string s;
while( is>>s ) v.push_back(s);
}
int main()
{
string s;
while( getline( cin,s ) ) // cin
{
v.clear(); // while 清空
split(s);
for( auto i:v ) cout<<i<<endl;
}
return 0;
}
// ostringstream
#include<bits/stdc++.h>
using namespace std;
template< class T >
void to_string( string& ans,const T& a ) // 常量引用 不能修改其绑定的对象
{
ostringstream os;
os<<a;
ans=os.str();
}
int main()
{
double a; // 注意 double_to_string 结尾无意义的 0 和 小数点 将被舍弃
string s;
while( cin>>a )
{
to_string( s,a );
cout<<s<<endl;
}
return 0;
}