description: Let's define S(x) to be the sum of digits of number x written in decimal system. For example, S(5) = 5, S(10) = 1, S(322) = 7.
  
  We will call an integer x interesting if S(x + 1) < S(x). In each test you will be given one integer n. Your task is to calculate the number of integers x such that 1 ≤ x ≤ n and x is interesting.
  
  Input
  
  The first line contains one integer t (1 ≤ t ≤ 1000) — number of test cases.
  
  Then t lines follow, the i-th line contains one integer n (1 ≤ n ≤ 10^9) for the i-th test case.
  
  Output
  
  Print t integers, the i-th should be the answer for the i-th test case.
  
  Example
  
  Input
  
  
  5
  1
  9
  10
  34
  880055535
  
  
  Output
  
  
  0
  1
  1
  3
  88005553
  
  Note
  
  The first interesting number is equal to 9.
solution: import java.io.OutputStream;
  import java.io.IOException;
  import java.io.InputStream;
  import java.io.PrintWriter;
  import java.util.*;
  import java.io.BufferedReader;
  import java.io.InputStreamReader;
  
  public class First {
  
      public static void main(String[] args) {
          InputStream inputStream = System.in;
          OutputStream outputStream = System.out;
          InputReader in = new InputReader(inputStream);
          PrintWriter out = new PrintWriter(outputStream);
          TaskA solver = new TaskA();
          //int a = 1;
          int t;
          t = in.nextInt();
          //t = 1;
          while (t > 0) {
              //out.print("Case #"+(a++)+": ");
              solver.call(in,out);
              t--;
          }
          out.close();
  
      }
  
      static class TaskA {
          public void call(InputReader in, PrintWriter out) {
              int n, a;
              n  = in.nextInt();
  
              a = n/10;
              if(n%10==9){
                  a++;
              }
  
              out.println(a);
  
          }
      }
  
      static int gcd(int a, int b)
      {
          if (a == 0)
              return b;
          return gcd(b % a, a);
      }
  
      static int lcm(int a, int b)
      {
          return (a / gcd(a, b)) * b;
      }
  
      static class answer implements Comparable<answer>{
          int a, b;
  
          public answer(int a, int b) {
              this.a = a;
              this.b = b;
          }
  
          @Override
          public int compareTo(answer o) {
              return this.a - o.a;
          }
      }
  
      static class answer1 implements Comparable<answer1>{
          int a, b, c;
  
          public answer1(int a, int b, int c) {
              this.a = a;
              this.b = b;
              this.c = c;
  
          }
  
          @Override
          public int compareTo(answer1 o) {
              if(o.c==this.c){
                  return this.a - o.a;
              }
              return o.c - this.c;
          }
      }
  
      static long gcd(long a, long b)
      {
          if (b == 0)
              return a;
          return gcd(b, a % b);
      }
  
      static void sort(long[] a) {
          ArrayList<Long> l=new ArrayList<>();
          for (Long i:a) l.add(i);
          l.sort(Collections.reverseOrder());
          for (int i=0; i<a.length; i++) a[i]=l.get(i);
      }
  
      static final Random random=new Random();
  
      static void shuffleSort(int[] a) {
          int n=a.length;
          for (int i=0; i<n; i++) {
              int oi=random.nextInt(n), temp=a[oi];
              a[oi]=a[i]; a[i]=temp;
          }
          Arrays.sort(a);
      }
  
      static class InputReader {
          public BufferedReader reader;
          public StringTokenizer tokenizer;
  
          public InputReader(InputStream stream) {
              reader = new BufferedReader(new InputStreamReader(stream), 32768);
              tokenizer = null;
          }
  
          public String next() {
              while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                  try {
                      tokenizer = new StringTokenizer(reader.readLine());
                  } catch (IOException e) {
                      throw new RuntimeException(e);
                  }
              }
              return tokenizer.nextToken();
          }
  
          public int nextInt() {
              return Integer.parseInt(next());
          }
          public long nextLong(){
              return Long.parseLong(next());
          }
          public double nextDouble() {
              return Double.parseDouble(next());
          }
  
      }
  }
  