#include using namespace std; typedef long long ll; int main() { int n; cin >> n; vector a(n); for (int i = 0; i < n; ++i) cin >> a[i]; ll total = 0; bool ok = true; for (int i = n-1; i >= 0; --i) { if ((a[i] + total) % (i+1) == 0) total += (a[i] + total) / (i+1); else { ok = false; break; } } cout << (ok ? "Yes" : "No") << endl; return 0; }