#include <bits/stdc++.h>   using namespace std;   int main() {     int i, n;     int a, b, c;     int sum_a, sum_b, sum_c;     sum_a = 0;     sum_b = 0;     sum_c = 0;     cin >> n;     for (i = 1; i <= n; i++) {       cin >> a >> b >> c;       sum_a = sum_a + a;       sum_b = sum_b + b;       sum_c = sum_c + c;     }     if (sum_a == 0 && sum_b == 0 && sum_c == 0) {       cout <<  YES  << endl;     } else {       cout <<  NO  << endl;     }     return 0;   }   