func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     string s, p =    ;     cin >> s;     int i, j = 0, f = 0, start, end;     for (i = s.size() - 1; i >= 0 && f == 0; i--) {       if (s[i] !=  0 ) {         end = i;         f = 1;       }     }     f = 0;     for (i = 0; i < s.size() && f == 0; i++) {       if (s[i] !=  0 ) {         start = i;         f = 1;       }     }     j = 0;     for (i = end; i >= start; i--) {       p[j] = s[i];       j++;     }     j = 0;     f = 0;     for (i = start; i <= end && f == 0; i++) {       if (p[j] != s[i])         f = 1;       else         j++;     }     if (f)       cout <<  NO  << endl;     else       cout <<  YES  << endl;   }   