#include <iostream>

const int ARRAYSIZE = 1000;

main()
{
 int size;            // contains how many values are actually
                      // in the array
 int arr[ARRAYSIZE];
 int i;

 cout << "Welcome" << endl << endl;

 cout << "Reading values from the file" << endl;

 // read in the leading or size value
 cin >> size;

 // read values into the array
 for (i = 0; i < size; i++)
     cin >> arr[i];

 // Display the values in the array
 for (i = 0; i < size; i++)
     {
      cout << arr[i] << "  ";
      if ((i+1) % 5 == 0)
          cout << endl;
     }

 cout << endl << "Goodbye" << endl;
}