🔄
#include <iostream>
#include <string>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
string s;
cin >> s;
int ans = 1;
for (int i = 0; i < s.size(); i++) {
if (s[i] != s[s.size() - i - 1]) {
ans = 0;
break;
}
}
cout << ans;
return 0;
}