#includeint is(int n){ int a,b,c; a=n%10; c=n/100; b=(n-c*100)/10; if(n==a*a*a+b*b*b+c*c*c)return 1; else return 0;}int main(){ int i,s=0; for(i=100;i<=999;i++) if(is(i))s+=i; printf("%d",s); return 0;}