n = read_line.to_i a = read_line.split.map(&.to_i64) puts a.sum % n == 0 ? "Yes" : "No"