#include using namespace std; #define ll long long void solve() { int n; cin >> n; ll s = 0; for (int i = 0; i > x; s += x; } ll k = s / n; if (n * k == s) { cout << "Yes\n"; } else { cout << "No\n"; } return; } int main(){ ios::sync_with_stdio(0); cin.tie(0); ll t = 1; //cin >> t; while (t--) { solve(); } return 0; }