#include <iostream>
#include <fstream>
#include <strstream>
using namespace std;
int main()
{
cout<<"chongtengteng";
int i;
float f;
cin>>i>>f;
cin>>ws;
char buf[100];
cin.getline(buf,100);
ostrstream os(buf,100,ios::app);
os<<endl;
os<<"tian = "<<i<<endl;
os<<"float = "<<f<<endl;
os<<ends;
cout<<"1"<<endl;
cout<<buf;
cout<<"2"<<endl;
cout<<os.rdbuf()<<endl;
//cout<<os.rdbuf()<<endl;
return 0;
}
#include <fstream>
#include <strstream>
using namespace std;
int main()
{
cout<<"chongtengteng";
int i;
float f;
cin>>i>>f;
cin>>ws;
char buf[100];
cin.getline(buf,100);
ostrstream os(buf,100,ios::app);
os<<endl;
os<<"tian = "<<i<<endl;
os<<"float = "<<f<<endl;
os<<ends;
cout<<"1"<<endl;
cout<<buf;
cout<<"2"<<endl;
cout<<os.rdbuf()<<endl;
//cout<<os.rdbuf()<<endl;
return 0;
}