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