#include using namespace std; #define rep(i,n) for(int i = 0; i < (int)n; i++) using ll = long long; int main(){ int n; cin >> n; int a[n+1]; rep(i,n) cin >> a[i+1]; int c = 0; for(int i = n; i > 0; i--) { if(a[i] > i or (a[i]+c) % i) { cout << "No" << endl; return 0; } c += (a[i]+c)/i; } cout << "Yes" << endl; return 0; }