#include <bits/stdc++.h>
int main(void) {
  int i, n, a[100001], flag = 0, sum = 0;
  scanf("%d\n", &n);
  for (i = 0; i < n; i++) {
    scanf("%d", &a[i]);
    sum = sum + a[i];
  }
  if (n % 2 == 0) flag = 1;
  if (sum % (n - 1) != 0) flag = 1;
  if (flag == 1)
    printf("No\n");
  else
    printf("Yes\n");
  return 0;
}
