#include <bits/stdc++.h>
using namespace std;
int main() {
for(int i =0;i<=256;i++){
string s1 = to_string(i*i);
string s2=s1;
reverse(s1.begin(),s1.end());
if(s1 == s2)cout<<i<<endl;
}
}
// 64 位输出请用 printf("%lld")

京公网安备 11010502036488号