include"iostream"
using namespace std;
void main()
{
int a,b,c,i,n1,n2;
n1=n2=0;
for( i=100; i<=999; i++ )
{
c=i%10;
b=(i-i%10)/10%10;
a=i/100;
if( i == a*a*a+b*b*b+c*c*c )
{
n1=n2;//n1是次大值,n2是最大值
n2=i;
}
}
cout<<"水仙花的次大值是:"<<n1<<endl;
}