Untitled

mail@pastecode.io avatar
unknown
plain_text
10 months ago
208 B
3
Indexable
Never
#include <iostream>
using namespace std;

int main() {
	string a;
	string b;

	cin >> a;
	b = a;

	reverse(a.begin(), a.end());
	if (a == b) {
		cout << "YES";
	}
	else {
		cout << "NO";
	}
}