#include <iostream>
using namespace std;
const int TEN = 10;
int main() {
int n;
cin >> n;
int noEven = 0;
while (n >= TEN) {cout << n << "\n" ;
if (((n / TEN) % TEN + n % TEN) % 2 == 0) {
++noEven;
}
n /= TEN;cout << n << "\n" ;
}
cout << noEven<<"perechi nr pare";
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKY29uc3QgaW50IFRFTiA9IDEwOwoKaW50IG1haW4oKSB7CiAgICBpbnQgbjsKICAgIGNpbiA+PiBuOwogICAgaW50IG5vRXZlbiA9IDA7CiAgICB3aGlsZSAobiA+PSBURU4pIHtjb3V0IDw8IG4gPDwgIlxuIiA7CiAgICAgICAgaWYgKCgobiAvIFRFTikgJSBURU4gKyBuICUgVEVOKSAlIDIgPT0gMCkgewogICAgICAgICAgICArK25vRXZlbjsKICAgICAgICB9CiAgICAgICAgbiAvPSBURU47Y291dCA8PCBuIDw8ICJcbiIgOwogICAgfQogICAgY291dCA8PCBub0V2ZW48PCJwZXJlY2hpIG5yIHBhcmUiOwogICAgcmV0dXJuIDA7Cn0=