
#include <iostream>
#include <vector>
#include <iterator>
using namespace std;

void erase_1st_neg(vector<int>& v);

int main() {
   int x;
   vector<int> v;
   while (cin >> x) v.push_back(x);
   erase_1st_neg(v);
   copy(v.begin(), v.end(),
        ostream_iterator<int>(cout, " "));
   cout << endl;
}
