/* -*- coding: utf-8 -*- * * 1586.cc: No.1586 Equal Array - yukicoder */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; /* constant */ const int MAX_N = 100000; /* typedef */ typedef long long ll; /* global variables */ /* subroutines */ /* main */ int main() { int n; scanf("%d", &n); ll sum = 0; for (int i = 0; i < n; i++) { int ai; scanf("%d", &ai); sum += ai; } if (sum % n == 0) puts("Yes"); else puts("No"); return 0; }