0
- #include<iostream>
- using namespace std;
- string s;
- bool hw(string s){
- int L=0,R=s.size()-1;
- while(L<R){
- if(s[L]!=s[R])return false;
- else{
- L++;
- R--;
- }
- }
- return true;
- } int main(){
- while(cin>>s){
- for(int i=0;i<s.size();i++){
- if(s[i]>='A'&&s[i]<='Z'){
- s[i]+=32;
- }
- } if(hw(s)){
- cout<<s<<endl;
- }
- return 0;
- }