#include<iostream.h>
#include<math.h>
double shu[201];
void jian()
{
int i;
for(i=1;i<=200;i++)
shu[i]=pow(i,3);
}
int main()
{
int a,b,c,d;
jian();
for(a=6;a<=200;a++)
{
for(b=2;b<a;b++)
{
for(c=b;c<a;c++)
{
for(d=c;d<a;d++)
{
if(shu[a]==shu[b]+shu[c]+shu[d])
cout<<"Cube = "<<a<<", Triple = ("
<<b<<","<<c<<","<<d<<")"<<endl;
}
}
}
}
return 0;
}