// p03_05.cpp: Frequency table of numbers formed by the least
//    significant six bits of integers read from the keyboard.
#include <iostream>
#include <iomanip>
using namespace std;

int main()
{  int f[64] = {0}, x;
   cout << "Enter integers, followed by a "
           "nonnegative character:\n";    
   while (cin >> x)
      ++f[x & 0x3F];
   cout << " i   freq[i]\n\n";
   for (int i=0; i<64; ++i)
      if (f[i] > 0) 
      cout << setw(2) << i << setw(8) << f[i] << endl;
   return 0;
}

