#include <iostream>
#include <cmath>
using namespace std;
int main()
{
for (int a = 1; a < 10; a++)
{
for (int b = 0; b < 10; b++)
{
if (a == b)
continue;
int num = a * 1100 + b * 11;
int x = sqrt(num);
if (x * x == num)
cout << num << endl;
}
}
return 0;
}