#include <bits/stdc++.h>   using namespace std;   int n, x, y, z, x_, y_, z_;   int main() {     cin >> n;     for (int i = 0; i < n; i++) {       cin >> x_ >> y_ >> z_;       x += x_;       z += z_;       y += y_;     }     if (x != 0 || y != 0 || z != 0)       cout <<  NO  << endl;     else       cout <<  YES  << endl;     return 0;   }   