#!/root/clam/clam
#include "stdlib.h"
#include "stat.h"

main(list argv)
{
  list topr, botr;

  random(time(0));
  for (r=0;r<7;r++) {
    for (c=0;c<6;c++) {
      if ((random()%100) > 90) mod=1000;
      else mod=100;
      do {
        topr[c] = random() % mod;
        botr[c] = random() % mod;
      } while (topr[c] == 0 || botr[c] == 0 || botr[c] > topr[c] || topr[c]+botr[c] > 999);
      print('   %{topr[c]:3d}  ');
    }
    print("\n");
    for (c=0;c<6;c++) {
      print('  +%{botr[c]:3d}____  ');
    }
    print("\n\n\n\n");
  }
}
