#include <bits/stdc++.h>
using namespace std;
int x, y, z, a = 0, b = 0, c = 0;
int main() {
  cin >> x;
  while (cin >> x >> y >> z) {
    a += x;
    b += y;
    c += z;
  }
  cout << (a || b || c ? "NO" : "YES");
}
