code
#include<iostream>
using namespace std;
int main()
{
for(int a = 7;a < 32 ;a++){
for(int b = 7;b < 32;b++){
for(int c = 7;c < 32;c++){
if(a * a + b * b + c * c == 1000){
cout << a <<" "<< b << " " << c << endl;
}
}
}
}
return 0;
}
10,18,24