#include using namespace std; typedef long long int ll; typedef pair P; typedef vector VI; typedef vector VVI; const ll MOD = 1000000007; const ll INF = 1e18; #define REP(i,n) for(int i=0;i> 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; }