import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] A = new int[N]; long sum = 0; int min = Integer.MAX_VALUE; for(int i=0;i0){ System.out.println("No"); return; } for(int num:A){ if((num-min)%N>0){ System.out.println("No"); return; } } System.out.println("Yes"); } }