    #include <sstream>
    #include <string>
    #include <fstream>
    #include <iostream>
    #include <vector>
    #include <iterator>
    #include <algorithm>
    
    using namespace std;
    
    int main()
    {
        string line;
        istringstream strm;
        vector<vector<int>> table;
        int num;
        while (getline(cin, line))
        {
            istringstream strm(line);
            vector<int> vInt;
            while ( strm >> num )
               vInt.push_back(num);
            table.push_back(vInt);    
        }
        
        // output results
        cout << "The table has this many rows: " << table.size() << endl;
        cout << "The data for each row: " << endl;
        for (size_t i = 0; i < table.size(); ++i)
        {
           copy(table[i].begin(), table[i].end(), ostream_iterator<int>(cout, " "));
           cout << endl;
        }
    }
