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