#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using pii = pair<ll, ll>;
using vpii = vector<pii>;
using vint = vector<ll>;
using ar3 = array<ll, 3>;
using ar4 = array<ll, 4>;
using va3 = vector<ar3>;
using va4 = vector<ar4>;
const ll N = 2e5 + 5;
const ll Inf = 1e9 + 7;
const ll inf = 1e18 + 7;
ll n, m;
void solve() {
  cin >> n;
  cout << (n + 1) / 10 << '\n';
}
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout << setprecision(9) << fixed;
  ll tt = 1;
  cin >> tt;
  while (tt--) {
    solve();
  }
}
