1 #include<iostream> 2 #include<string> 3 #include<fstream> 4 using namespace std; 5 int main() 6 { 7 #ifndef ONLINE_JUDGE 8 ifstream in("in.txt",ios::in); 9 streambuf *backup,*file; 10 backup=cin.rdbuf(); 11 file=in.rdbuf(); 12 cin.rdbuf(file); 13 #endif 14 string s; 15 while(cin>>s) 16 cout<<s<<endl; 17 #ifndef ONLINE_JUDGE 18 cin.rdbuf(backup); 19 in.close(); 20 #endif 21 return 0; 22 }