#include<bits/stdc++.h>
using namespace std;
enum WordType{
Begin,keyword,inentifier,constant,Operator,Separator,Error
};
struct CompleteWord{
string word;
WordType type;
CompleteWord(WordType type,string& word){
this->type = type;
this->word = word;
}
};
bool isBlank(const char &c){
if(c==' '||c=='\n'||c=='\t'){
return true;
}
return false;
}
void stringtrim(string &s){
int i=0;
if(isBlank(s[i])){
while(isBlank(s[i])){
i++;
}
s.erase(0,i);
}
i = s.size()-1;
if(isBlank(s[i])){
while(isBlank(s[i])){
i--;
}
s.erase(i+1);
}
}
bool isKey(const string &s){
string keys[]={
"int","if","for","while","continue","do","return","break"
};
int keysize = sizeof(keys)/sizeof(string);
for(int i =0; i < keysize;i++){
if(s == keys[i]){
return true;
}
}
return false;
}
bool isDigit(const char &s){
if(s>='0'&&s<='9')return true;
return false;
}
bool isLetter(const char &s){
if((s>='a'&&s<='z')\\(s>='A'&&s<='Z')||s=='_')return true;
return false;
}
bool isOperator(const char &s){
if(s=='+'\\s=='-'||s=='*'||s=='/'||s=='^')return true;
return false;
}
bool isSeparator(const char &s){
if(s==','||s==';'||s=='{'||s=='}'||s=='('||s==')')return true;
return false;
}
int main(){
string str;
cin>>str;
stringtrim(str);
cout<<str<<endl;
}