#!/bin/python import sys n = int(raw_input().strip()) xF = 0 yF = 0 x = 0 y = 0 for a0 in xrange(n): x,y = map(int, raw_input().strip().split(' ')) xF += abs(int(x)) yF += abs(int(y)) if (xF/n == x and xF%n == 0) or (yF/n == y and yF%n == 0): print "YES" else: print "NO"