import java.util.Scanner;

public class Main {

  public static void main(String[] args) {
    // TODO 自動生成されたメソッド・スタブ
    Scanner scanner = new Scanner(System.in);
    boolean isFalse = false;
    int n = scanner.nextInt();

    for (int i = 0; i < n; i++) {
      int t = scanner.nextInt();
      int x = scanner.nextInt();
      int y = scanner.nextInt();

      if (t < (x + y)) {
        isFalse = true;
        break;
      }

      if ((t % 2) == 0) {
        if ((x + y) % 2 != 0) {
          isFalse = true;
          break;
        }
      }

      if ((t % 2) != 0) {
        if ((x + y) % 2 == 0) {
          isFalse = true;
          break;
        }
      }
    }

    if (!isFalse) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

  }

} import java.util.Scanner; Scanner java.util public class Main {

  public static void main(String[] args) {
    // TODO 自動生成されたメソッド・スタブ
    Scanner scanner = new Scanner(System.in);
    boolean isFalse = false;
    int n = scanner.nextInt();

    for (int i = 0; i < n; i++) {
      int t = scanner.nextInt();
      int x = scanner.nextInt();
      int y = scanner.nextInt();

      if (t < (x + y)) {
        isFalse = true;
        break;
      }

      if ((t % 2) == 0) {
        if ((x + y) % 2 != 0) {
          isFalse = true;
          break;
        }
      }

      if ((t % 2) != 0) {
        if ((x + y) % 2 == 0) {
          isFalse = true;
          break;
        }
      }
    }

    if (!isFalse) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

  }

} Main public static void main(String[] args) {
    // TODO 自動生成されたメソッド・スタブ
    Scanner scanner = new Scanner(System.in);
    boolean isFalse = false;
    int n = scanner.nextInt();

    for (int i = 0; i < n; i++) {
      int t = scanner.nextInt();
      int x = scanner.nextInt();
      int y = scanner.nextInt();

      if (t < (x + y)) {
        isFalse = true;
        break;
      }

      if ((t % 2) == 0) {
        if ((x + y) % 2 != 0) {
          isFalse = true;
          break;
        }
      }

      if ((t % 2) != 0) {
        if ((x + y) % 2 == 0) {
          isFalse = true;
          break;
        }
      }
    }

    if (!isFalse) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

  } main {
    // TODO 自動生成されたメソッド・スタブ
    Scanner scanner = new Scanner(System.in);
    boolean isFalse = false;
    int n = scanner.nextInt();

    for (int i = 0; i < n; i++) {
      int t = scanner.nextInt();
      int x = scanner.nextInt();
      int y = scanner.nextInt();

      if (t < (x + y)) {
        isFalse = true;
        break;
      }

      if ((t % 2) == 0) {
        if ((x + y) % 2 != 0) {
          isFalse = true;
          break;
        }
      }

      if ((t % 2) != 0) {
        if ((x + y) % 2 == 0) {
          isFalse = true;
          break;
        }
      }
    }

    if (!isFalse) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

  } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) boolean isFalse = false; isFalse false int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner for (int i = 0; i < n; i++) {
      int t = scanner.nextInt();
      int x = scanner.nextInt();
      int y = scanner.nextInt();

      if (t < (x + y)) {
        isFalse = true;
        break;
      }

      if ((t % 2) == 0) {
        if ((x + y) % 2 != 0) {
          isFalse = true;
          break;
        }
      }

      if ((t % 2) != 0) {
        if ((x + y) % 2 == 0) {
          isFalse = true;
          break;
        }
      }
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      int t = scanner.nextInt();
      int x = scanner.nextInt();
      int y = scanner.nextInt();

      if (t < (x + y)) {
        isFalse = true;
        break;
      }

      if ((t % 2) == 0) {
        if ((x + y) % 2 != 0) {
          isFalse = true;
          break;
        }
      }

      if ((t % 2) != 0) {
        if ((x + y) % 2 == 0) {
          isFalse = true;
          break;
        }
      }
    } {
      int t = scanner.nextInt();
      int x = scanner.nextInt();
      int y = scanner.nextInt();

      if (t < (x + y)) {
        isFalse = true;
        break;
      }

      if ((t % 2) == 0) {
        if ((x + y) % 2 != 0) {
          isFalse = true;
          break;
        }
      }

      if ((t % 2) != 0) {
        if ((x + y) % 2 == 0) {
          isFalse = true;
          break;
        }
      }
    } int t = scanner.nextInt(); t scanner.nextInt() scanner.nextInt scanner int x = scanner.nextInt(); x scanner.nextInt() scanner.nextInt scanner int y = scanner.nextInt(); y scanner.nextInt() scanner.nextInt scanner if (t < (x + y)) {
        isFalse = true;
        break;
      } t < (x + y) t (x + y) x y {
        isFalse = true;
        break;
      } isFalse = true isFalse true break; if ((t % 2) == 0) {
        if ((x + y) % 2 != 0) {
          isFalse = true;
          break;
        }
      } (t % 2) == 0 (t % 2) t 2 0 {
        if ((x + y) % 2 != 0) {
          isFalse = true;
          break;
        }
      } if ((x + y) % 2 != 0) {
          isFalse = true;
          break;
        } (x + y) % 2 != 0 (x + y) % 2 (x + y) x y 2 0 {
          isFalse = true;
          break;
        } isFalse = true isFalse true break; if ((t % 2) != 0) {
        if ((x + y) % 2 == 0) {
          isFalse = true;
          break;
        }
      } (t % 2) != 0 (t % 2) t 2 0 {
        if ((x + y) % 2 == 0) {
          isFalse = true;
          break;
        }
      } if ((x + y) % 2 == 0) {
          isFalse = true;
          break;
        } (x + y) % 2 == 0 (x + y) % 2 (x + y) x y 2 0 {
          isFalse = true;
          break;
        } isFalse = true isFalse true break; if (!isFalse) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    } !isFalse isFalse {
      System.out.println("Yes");
    } System.out.println("Yes") System.out.println System.out System System.out "Yes" {
      System.out.println("No");
    } System.out.println("No") System.out.println System.out System System.out "No" String[] args args public class Main {

  public static void main(String[] args) {
    // TODO 自動生成されたメソッド・スタブ
    Scanner scanner = new Scanner(System.in);
    boolean isFalse = false;
    int n = scanner.nextInt();

    for (int i = 0; i < n; i++) {
      int t = scanner.nextInt();
      int x = scanner.nextInt();
      int y = scanner.nextInt();

      if (t < (x + y)) {
        isFalse = true;
        break;
      }

      if ((t % 2) == 0) {
        if ((x + y) % 2 != 0) {
          isFalse = true;
          break;
        }
      }

      if ((t % 2) != 0) {
        if ((x + y) % 2 == 0) {
          isFalse = true;
          break;
        }
      }
    }

    if (!isFalse) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

  }

} public class Main {

  public static void main(String[] args) {
    // TODO 自動生成されたメソッド・スタブ
    Scanner scanner = new Scanner(System.in);
    boolean isFalse = false;
    int n = scanner.nextInt();

    for (int i = 0; i < n; i++) {
      int t = scanner.nextInt();
      int x = scanner.nextInt();
      int y = scanner.nextInt();

      if (t < (x + y)) {
        isFalse = true;
        break;
      }

      if ((t % 2) == 0) {
        if ((x + y) % 2 != 0) {
          isFalse = true;
          break;
        }
      }

      if ((t % 2) != 0) {
        if ((x + y) % 2 == 0) {
          isFalse = true;
          break;
        }
      }
    }

    if (!isFalse) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

  }

} Main
import java.util.Scanner;

public class Main {

  public static void main(String[] args) {
    // TODO 自動生成されたメソッド・スタブ
    Scanner scanner = new Scanner(System.in);
    boolean isFalse = false;
    int n = scanner.nextInt();

    for (int i = 0; i < n; i++) {
      int t = scanner.nextInt();
      int x = scanner.nextInt();
      int y = scanner.nextInt();

      if (t < (x + y)) {
        isFalse = true;
        break;
      }

      if ((t % 2) == 0) {
        if ((x + y) % 2 != 0) {
          isFalse = true;
          break;
        }
      }

      if ((t % 2) != 0) {
        if ((x + y) % 2 == 0) {
          isFalse = true;
          break;
        }
      }
    }

    if (!isFalse) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

  }

}
