#include
#include
#include
using namespace std;
bool func(int a){
string str;
ostringstream stream;
stream<<a;<br> str=stream.str();
int sum=0;
for(int i=0;i sum+=str[i]-'0';
}
return sum>10;
}
int main(){
int n,counter=0,i=301;
cin>>n;
int *mas=new int[n];
while(counter if((i%13==0||i%17==0)&&func(i)){
mas[counter]=i;
counter++;
}
i++;
}
for(i=0;i cout<<mas[i]<<" ";<br> }
system("pause");
return 0;
}