#include int main(void) { int N; long A[100001]; long long sum = 0; scanf("%d", &N); for (int i = 0; i < N; i++) { scanf("%d", &A[i]); sum += A[i]; } if (sum%N == 0) { printf("Yes\n"); }else { printf("No\n"); } return 0; }