#include<iostream>
#include<cmath>
using namespace std;
int find(n){
int count = 0;
long num=0,x = 0, y = 0;
while(1){
num++;
x = sqrt(num+100);
y = sqrt(num+268);
if(x*x==num+100&&y*y==num+268){
cout<<"num="<<num<<endl;
count++;
if(count==n)
break;
}
}
return 0;
}
int main(void){
int n=3;
find();
return 0;
}