#include <iostream>using namespace std;
int main() { int x, trecut, xc, adevar;
cin >> x; xc = x; adevar = 0; while (x) { trecut = x % 10; x /= 10; if (trecut < x % 10) { adevar = 1; x = 0; } }
if (adevar == 1) { cout << "Numarul " << xc << " nu este un numar bine ordonat.\n"; } else { cout << "Numarul " << xc << " este un numar bine ordonat.\n"; }
return 0;}