def main(): n=int(input()) a=list(map(int,input().split())) s = sum(a) m = s % n ans = m == 0 print('Yes' if ans else 'No') if __name__ == "__main__": main()