#include <bits/stdc++.h>

const int N = 200010;
using ll = long long;

ll a[N];

int main(){
    int n;
    scanf("%d", &n);
    for (int i = 1; i <= n; ++ i){
        scanf("%lld", &a[i]);
    }
    for (int i = 1; i <= n; ++ i){
        if (a[i] > i){
            puts("No");
            return 0;
        }
    }
    ll offset = 0;
    for (int i = n; i >= 1; -- i){
        a[i] += offset;
        if (a[i] % i){
            puts("No");
            return 0;
        }
        offset += a[i] / i;
    }
    puts("Yes");
    return 0;
}