#pragma GCC target("avx2") #pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") #include using namespace std; using ll = long long; const int INF = 1e9; const ll inf = 1LL<<60; void solve() { int n; cin >> n; for (int i=0; i> s; reverse(s.begin(), s.end()); while (s.size() > 1 && s.back() == '0') s.pop_back(); reverse(s.begin(), s.end()); cout << s << '\n'; } } int main() { ios::sync_with_stdio(false); std::cin.tie(nullptr); // int t; cin >> t; /*while (t--)*/ solve(); }