#include using namespace std; bool solve() { int n; cin >> n; vector a(n + 1); for(int i = 1; i <= n; ++i) cin >> a[i]; long long t = 0; for(int i = n; i >= 2; --i) { if((a[i] + t) % i) return false; t += (a[i] + t) / i; } return true; } int main() { cout << (solve() ? "Yes" : "No") << '\n'; return 0; }