#include<iostream>
#include<ctime>
#include<cstdlib>
#include<cstdio>
using namespace std;
int getrand(int i)
{
srand(time(0));
return rand()%i;
}
int main(int is,char *j[])
{
cout<<getrand(is)<<endl;
for(int s=1;s<1000;s++)
cout<<getrand(s)<<'\n';
return 0;
}