#include using namespace std; typedef long long ll; const double pi=3.141592653589793; typedef unsigned long long ull; typedef long double ldouble; const ll INF=1e18; #define rep(i, n) for(ll i = 0; i < (ll)(n); i++) #define rep2(i, s, n) for (ll i = (s); i < (ll)(n); i++) template inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; } template inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; } vector > c(2*10e5+1); void solve(int x, int y) { } int main(){ int n, sum = 0; cin >> n; vector a(n+1); rep(i, n){ cin >> a[i+1]; } for(int i = n; i > 0; i--){ if((a[i] + sum) % (i) == 0) { sum += (a[i] + sum) / i; } else { cout << "No" << endl; return 0; } } cout << "Yes" << endl; return 0; }