#include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef pair<ll,ll> P; typedef vector<ll> VI; typedef vector<VI> VVI; const ll MOD = 1000000007; const ll INF = 1e18; #define REP(i,n) for(int i=0;i<n;i++) #define ALL(v) v.begin(),v.end() int main(){ int n; cin >> n; VI a(n); REP(i,n) cin >> a[i]; ll c=0; bool no=0; for(int i=n-1;i>=0;i--){ if((a[i]+c)%(i+1)!=0){ no=1; break; } c+=(c+a[i])/(i+1); } if(no) cout << "No" << endl; else cout << "Yes" << endl; return 0; }