#include <iostream>
#include <cstdlib>
#include <ctime>
#include<fstream>
using namespace std;
void int_massiv()
{
int a[20];
int i;
int k;
cin >> k;
srand(time(NULL));
for (i = 0; i < k; i++)
a[i] = 0 + rand() % 20;
for (i = 0; i < k; i++)
cout<<a[i]<<" ";
}
int main()
{
int_massiv();
ofstream fout;
fout.open("100.txt");
fout <<int_massiv;
fout.close();
}