n = read_line.to_i a = read_line.split.map(&.to_i64) x = a.sum puts("No") + exit if x % n > 0 x //= n puts "Yes"