#include <cstdio>
#include <cstring>
#include <cmath>

using namespace std;
int jue(int a,int b)
{
    int s;
    if (a-b < 0)
        s = b-a;
    else
        s = a-b;
    return s;
}

int main()
{
   int n;
   int flag = 1;
   int a = 0,b = 0,c = 0;
   int x,y,z;
   scanf ("%d",&n);
   for (int i = 0;i < n;i++)
   {
       int s = 0;
       scanf ("%d%d%d",&x,&y,&z);
       s = jue(y,b) + jue(z,c);
       int t = x - a;
       if (s > t)
           flag = 0;
       else if ((t-s)%2 == 1)
           flag = 0;
       a = x;
       b = y;
       c = z;
   }
   if (flag == 0)
    printf ("No");
   else if (flag == 1)
    printf ("Yes");
   return 0;
}
