1
      2
      3
      4
      5
      6
      7
      8
      9
     10
     11
     12
     13
     14
#include <iostream>
#include "IntegerSequence.hpp"

int main() {
   IntegerSequence iseq;
   int value;
   while (std::cin >> value) {
      iseq.add(value);
   }
   for (std::size_t i = 0; i < iseq.length(); ++i) {
      std::cout << " " << iseq(i);
   }
   std::cout << std::endl;
}