https://www.acmicpc.net/problem/10988
#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
string s;
string temp;
bool bResult;
int main()
{
cin >> s;
temp = s;
reverse(s.begin(), s.end());
if (s == temp)
bResult = true;
cout << bResult << endl;
}