/** * @FileName a.cpp * @Author kanpurin * @Created 2020.09.05 02:41:24 **/ #include "bits/stdc++.h" using namespace std; typedef long long ll; int main() { int n;cin >> n; vector a(n); for (int i = 0; i < n; i++) { cin >> a[i]; } int now_cnt = 0; for (int i = n - 1; i >= 0; i--) { if ((a[i] + now_cnt) % (i + 1) == 0) { now_cnt += (a[i] + now_cnt) / (i + 1); } else { puts("No"); return 0; } } puts("Yes"); return 0; }