content: import java.io.*;
  import java.math.*;
  import java.security.*;
  import java.text.*;
  import java.util.*;
  import java.util.concurrent.*;
  import java.util.function.*;
  import java.util.regex.*;
  import java.util.stream.*;
  import static java.util.stream.Collectors.joining;
  import static java.util.stream.Collectors.toList;
  
  class Result {
  
      /*
       * Complete the 'halloweenParty' function below.
       *
       * The function is expected to return a LONG_INTEGER.
       * The function accepts INTEGER k as parameter.
       */
  
      public static long halloweenParty(int k) {
          if (k % 2 == 0) {
              return (long)(k / 2) * (long)(k / 2);
          }
          return (long)(Math.floor(k/2d) * Math.ceil(k/2d));
      }
  
  }
  
  public class Solution {
      public static void main(String[] args) throws IOException {
          BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
          BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(System.getenv("OUTPUT_PATH")));
  
          int t = Integer.parseInt(bufferedReader.readLine().trim());
  
          IntStream.range(0, t).forEach(tItr -> {
              try {
                  int k = Integer.parseInt(bufferedReader.readLine().trim());
  
                  long result = Result.halloweenParty(k);
  
                  bufferedWriter.write(String.valueOf(result));
                  bufferedWriter.newLine();
              } catch (IOException ex) {
                  throw new RuntimeException(ex);
              }
          });
  
          bufferedReader.close();
          bufferedWriter.close();
      }
  }
  