#include <bits/stdc++.h>
using namespace std;
mt19937 rng(chrono::high_resolution_clock::now().time_since_epoch().count());
using ll = long long;
void solve() {
  int n;
  cin >> n;
  cout << (n + 1) / 10 << '\n';
}
int main() {
  int t;
  cin >> t;
  while (t--) solve();
}
