#include <bits/stdc++.h>
using namespace std;
const int mx = 1e6 + 10, inf = 1e9 + 10;
long long int t, n, ans, a[mx];
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> t;
  while (t--) {
    cin >> n;
    cout << (n + 1) / 10 << endl;
  }
  return 0;
}
