#include <iostream>
#include <cstdio>
using namespace std;
int main()
{
bool b[1000005]={false};
int k,sum;
for( int i=1;i<=1000000;i++)
{
sum=i;
k=i;
while(k!=0)
{
sum=sum+k%10;
k/=10;
}
b[sum]=true;
if(b[i]==false)
cout<<i<<endl;
}
return 0;
}