#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;
}
