Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
286 B
1
Indexable
Never
#include <iostream>
#include <string>
using namespace std;
int main() {
	string a; int b = 0,n = 0;
	char g;
	cin >> a;
	for (int i = 0; i < a.size(); i++) {
		if (a[i] % 2 == 1) a[i] = '0';
	}
	while (1) {
		if (a[0] == '0') a.erase(0, 1);
		else break;
	}
	cout << a;
}