#include <iostream>
#include <cmath>
using namespace std;

int main() {
    for (int a = 1; a <= 9; a++) {
        for (int b = 0; b <= 9; b++) {
            int num = a * 1100 + b * 11;
            int root = static_cast<int>(sqrt(num));
            if (root * root == num) {
                cout << num << endl;
            }
        }
    }
    return 0;
}    
/**************************************************************
	Problem: 1092
	User: panyuchen
	Language: C++
	Result: Accepted
	Time:3 ms
	Memory:2072 kb
****************************************************************/