#include <iostream>
#include <cstdio>
#include <string>
using namespace std;
bool check(int n){
string s;
s = to_string(n);
int len = s.length();
for(int i = 0; i < len / 2; i++){
if(s[i] != s[len - i - 1]){
return false;
}
}
return true;
}
int main(){
for(int i = 0; i <= 256; i++){
if(check(i * i)){
printf("%d\n", i);
}
}
return 0;
}
京公网安备 11010502036488号