#include <iostream>
#include <string>
#include <algorithm>

using namespace std;

int main()
{
	for (string s; cin >> s; ) {
		std::stable_partition(s.begin(), s.end(), [](char ch) { return ch != '0'; });
		cout << s << endl;
	}
}