#include<iostream> using namespace std; int main() { long long x, y, z=0, i; cin >> x; if (x == 0) { cout << '0'; } if (x < 0) { x = -x; cout << "-"; } while (x != 0) { if (x % 10 != 0) cout << x % 10; x /= 10; } }