```cpp
include[HTML_REMOVED]
include[HTML_REMOVED]
using namespace std;
int main(){
string a;
getline(cin,a);
int len=a.size();
int t=0;
cout<<a[0];
for(int i=1;i<len;i++){
if(a[i]!=’ ‘&&a[i-1]!=’ ‘||a[i-1]!=’ ‘&&a[i]==’ ‘||a[i-1]==’ ‘&&a[i]!=’ ‘) cout<<a[i];
}
return 0;
}