#include <iostream>
#include <string>
#include <list>
#include <sstream>
#include <vector>

using namespace std;

void removeLastOccurrenceOfFirstEven(list<int> &l);

#ifndef IOLISTFUNCTIONS
#define IOLISTFUNCTIONS
static list<int> readList(string line)
{
    istringstream mycin(line);
    list<int> l;
    int x;
    while (mycin >> x)
        l.push_back(x);
    return l;
}

static void writeList(list<int> &l)
{
    bool writespace = false;
    for (list<int>::iterator it = l.begin(); it != l.end(); it++) {
        if (writespace) cout << " ";
        writespace = true;
        cout << *it;
    }
    cout << endl;
}
#endif

int main()  {
    string line;
    getline(cin, line);
	list<int> l = readList(line);
    writeList(l);
    int size;
    int maxsteps = 1000;
    int steps = 0;
   	do {
        size = int(l.size());
        removeLastOccurrenceOfFirstEven(l);
        if (int(l.size()) < 100 or steps%100 == 0) {
        	cout << "=>" << endl;
        	writeList(l);
        }
        steps++;
    } while (size != int(l.size()) and steps < maxsteps);
}
