import sys read = sys.stdin.read readline = sys.stdin.readline readlines = sys.stdin.readlines N, *A = map(int, read().split()) sm = sum(A) if sm % N: print('No') sys.exit() else: print('Yes')