<filename>A2OJ-11/001_A_Young_Physicist.py<gh_stars>0
"""
1. Young Physicist - https://codeforces.com/problemset/problem/69/A
"""
x, y, z = 0, 0, 0
for _ in range(int(input())):
    a, b, c = map(int, input().split())
    x += a
    y += b
    z += c
if x == y == z == 0:
    print("YES")
else:
    print("NO")

<filename>A2OJ-11/001_A_Young_Physicist.py<gh_stars>0
"""
1. Young Physicist - https://codeforces.com/problemset/problem/69/A
"""
x, y, z = 0, 0, 0
for _ in range(int(input())):
    a, b, c = map(int, input().split())
    x += a
    y += b
    z += c
if x == y == z == 0:
    print("YES")
else:
    print("NO")

1. Young Physicist - https://codeforces.com/problemset/problem/69/A