#include <iostream>
#include <string>
using namespace std;
int main(void)
{
ios::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
while (1)
{
int num = 0;
cin >> num;
bool an = true;
if (num == 0)
{
break;
}
string a = to_string(num);
int evenOdd = 1;
while (num > 10)
{
num = (num / 10);
evenOdd++;
}
// 2자리 4자리
if (evenOdd % 2 == 0)
{
for (int i = 0; i < (a.length() / 2); ++i)
{
if (a[i] != a[a.length() - 1 - i])
{
an = false;
}
}
}
else
{
for (int i = 0; i < (a.length() / 2); ++i)
{
if (a[i] != a[a.length() - 1 - i])
{
an = false;
}
}
}
if (an)
{
cout << "yes" << '\n';
}
else
{
cout << "no" << '\n';
}
}
return 0;
}
코딩 테스트