Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
312 B
1
Indexable
Never
#include <iostream> 
using namespace std;
int main(){
    int a[4],b,d,i=0;
    cin >> b;
    while(i<4){
        d=0;
        d += b % 10;
        b /= 10;
        a[i]=d;
        i++;
    }
    if(a[0]==a[3] && a[1]==a[2]){
        cout << "YES";
    }
    else{
        cout << "NO";
    }
}