#include <bits/stdc++.h>
using namespace std;
int main(){
int ab,cd,h;
for(int i=1000;i<9999;i++){
ab=i/100;
cd=i%100;
h=ab+cd;
if(h*h==i) cout<<i<<endl;
}
}
/**************************************************************
Problem: 1085
User: yangjunwen
Language: C++
Result: Accepted
Time:5 ms
Memory:2072 kb
****************************************************************/