#include "iostream"
#include <cmath>
using namespace std;
int main()
{
int i=0; //用於窮舉
int count =0; //用於計數
while(1)
{
double temp1 = i+100;
double temp2 = i+100 +168;
if(sqrt(temp1)*sqrt(temp1) == temp1 && sqrt(temp2)*sqrt(temp2) == temp2) // sqrt(9)*sqrt(9) = 9;
{
count++; //找到一個計數加1
cout<<i <<endl;
}
if(count == 3)
{
break;
}
i++;
}
return 0;
}