using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace xxx
{
internal class 水仙花
{
static void Main(string[] args)
{
int a, b, c, m, n, i,j, k;
for(i=100;i<=999;i++)
{
a = i % 10;
b = (i / 10) % 10;
c = (i / 100) % 10;
m = a * a * a + b * b * b + c * c * c;
if(i==m)
{
Console.WriteLine(i);
}
}
}
}
}