#include<stdio.h>
int main()
{
int a1,a2,a3,a4,a5,a6,b1,b2,b3,b4,i,n,m;
for (i=10;i<=22;i++)
{
n= i*i*i;
m=i*i*i*i;
b1=n/1000;
b2=n%1000/100;
b3=n%100/10;
b4=n%10;
a1=m/100000;
a2=m%100000/10000;
a3=m%10000/1000;
a4=m%1000/100;
a5=m%100/10;
a6=m%10;
if(b1!=b2&&b1!=b3&&b1!=b4&&b1!=a1&&b1!=a2&&b2!=a3&&b1!=a4&&b1!=a5&&b1!=a6&&b2!=b3&&b2!=b4&&b2!=a1&&b2!=a2&&b2!=a3&&b2!=a4&&b3!=b4&&b3!=a1&&b3!=a2&&b3!=a3&&b3!=a4&&b3!=a5&&b3!=a6&&b4!=a1&&b4!=a2&&b4!=a3&&b4!=a4&&b4!=a5&&b4!=a6&&a1!=a2&&a1!=a3&&a1!=a4&&a1!=a5&&a1!=a6&&a2!=a3&&a2!=a4&&a2!=a5&&a2!=a6&&a3!=a4&&a3!=a5&&a3!=a6&&a4!=a5&&a4!=a6&&a5!=a6)
{
printf("age=%d\n",i);
}
}
return 0;
}