#include <bits/stdc++.h>
#include "algotester_generator.h"
using namespace std;
int main(int argc, char* argv[])
{
auto gen = AlgotesterGenerator(argc, argv);
int nmin = gen.getArg<int>(2);
int nmax = gen.getArg<int>(3);
int amin = gen.getArg<int>(4);
int amax = gen.getArg<int>(5);
int n = gen.randInt(nmin, nmax);
cout << n << '\n';
for (int i = 0; i < n; i++)
{
if (i)
cout << ' ';
cout << gen.randInt(amin, amax);
}
cout << '\n';
return 0;
}