#include <bits/stdc++.h>

using namespace std;

int t, n;

int main() {
    cin >> t;
    while (t--) {
        cin >> n;
        cout << (n + 1) / 10 << endl;
    }
    return 0;
}