using System; public class Hello { static void Main() { var n = int.Parse(Console.ReadLine().Trim()); string[] line = Console.ReadLine().Trim().Split(' '); var asum = 0L; for (int i = 0; i < n; i++) asum += long.Parse(line[i]); Console.WriteLine(asum % n == 0 ? "Yes" : "No"); } }