text: //
  //  Day3Throw.js
  //  HackerRank
  //
  //  Created by Fabrizio Duroni on 28/10/17.
  //
  //  https://www.hackerrank.com/challenges/js10-throw
  
  'use strict';
  
  process.stdin.resume();
  process.stdin.setEncoding('utf-8');
  
  let inputString = '';
  let currentLine = 0;
  
  process.stdin.on('data', inputStdin => {
      inputString += inputStdin;
  });
  
  process.stdin.on('end', _ => {
      inputString = inputString.trim().split('\n').map(string => {
          return string.trim();
      });
  
      main();
  });
  
  function readLine() {
      return inputString[currentLine++];
  }
  
  function isPositive(a) {
      if (a === 0) {
          throw new Error("Zero Error");
      }
      if (a < 0) {
          throw new Error("Negative Error");
      }
      return "YES";
  }
  
  function main() {
      const n = +(readLine());
  
      for (let i = 0; i < n; i++) {
          const a = +(readLine());
  
          try {
              console.log(isPositive(a));
          } catch (e) {
              console.log(e.message);
          }
      }
  }
  
  