#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#define MAX 1000010000
long long int ar[1000000],ans[1000000];
int findDecimal(int num)
{
int sum=0;
while(num>0)
{
sum=sum+(num%10);
num=num/10;
}
return sum;
}
int main()
{
int a,b,c,i,j=0,k,count=0;
scanf("%d%d%d",&a
,&b
,&c
); for(i=1;i<=81;i++)
{
ar
[i
]=(long long int)(b
*((long long int)pow(i
,a
)))+c
; }
for(i=1;i<=81;i++)
{
if(i==findDecimal(ar[i]))
{
if(ar[i]>0 && ar[i]<1000000000)
ans[j++]=ar[i];
}
}
for(k=0;k<j;k++)
return 0;
}
I2luY2x1ZGU8c3RkaW8uaD4KI2luY2x1ZGU8c3RkbGliLmg+CiNpbmNsdWRlPG1hdGguaD4KI2RlZmluZSBNQVggMTAwMDAxMDAwMApsb25nIGxvbmcgaW50IGFyWzEwMDAwMDBdLGFuc1sxMDAwMDAwXTsKaW50IGZpbmREZWNpbWFsKGludCBudW0pCnsKICAgIGludCBzdW09MDsKICAgIHdoaWxlKG51bT4wKQogICAgewogICAgICAgIHN1bT1zdW0rKG51bSUxMCk7CiAgICAgICAgbnVtPW51bS8xMDsKICAgIH0KICAgIHJldHVybiBzdW07Cn0KaW50IG1haW4oKQp7CiAgICBpbnQgYSxiLGMsaSxqPTAsayxjb3VudD0wOwogICBzY2FuZigiJWQlZCVkIiwmYSwmYiwmYyk7CiAgIGZvcihpPTE7aTw9ODE7aSsrKQogICB7CiAgICAgICBhcltpXT0obG9uZyBsb25nIGludCkoYiooKGxvbmcgbG9uZyBpbnQpcG93KGksYSkpKStjOwogICB9CiAgIGZvcihpPTE7aTw9ODE7aSsrKQogICB7CiAgICAgICBpZihpPT1maW5kRGVjaW1hbChhcltpXSkpCiAgICAgICB7CiAgICAgICAgICAgaWYoYXJbaV0+MCAmJiBhcltpXTwxMDAwMDAwMDAwKQogICAgICAgICAgIGFuc1tqKytdPWFyW2ldOwogICAgICAgfQogICB9CiAgIHByaW50ZigiJWRcbiIsaik7CiAgIGZvcihrPTA7azxqO2srKykKICAgcHJpbnRmKCIlZCAiLGFuc1trXSk7CiAgIHJldHVybiAwOwp9