import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); String[] sa = br.readLine().split(" "); int[] a = new int[n + 1]; for (int i = 0; i < n; i++) { a[i + 1] = Integer.parseInt(sa[i]); } br.close(); int cnt = 0; for (int i = n; i > 0; i--) { int s = a[i] + cnt; if (s % i != 0) { System.out.println("No"); return; } cnt += s / i; } System.out.println("Yes"); } }