n = int(input()) A = list(map(int, input().split())) A.sort() for i in range(n - 1): if (A[i + 1] - A[i]) % n != 0: print("No") exit() print("Yes")