#include <iostream>
#include <fstream>
#include <stdlib.h>

using namespace std;

int main ()
{
  char alpha[26] = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};
  ofstream fout;
  string fname, rand_word;
  fname = "input.dat";
  int temp_int1, temp_int2;
  char temp_char;
  
  fout.open(fname.c_str());
  for(int j = 0; j < 1000; j++)
  {
    rand_word = "";
    temp_int1 = rand();
    temp_int1 = temp_int1 % 10 + 5;
    for(int i = 0; i < temp_int1; i++)
      {
        temp_int2 = rand();
        temp_int2 = temp_int2 % 26;
        rand_word.push_back(alpha[temp_int2]);
      }
    fout << rand_word << endl;
  } 
    return 0;
}

