object Main extends App { val sc = new java.util.Scanner(System.in) val n = sc.nextInt val p = Seq.fill(n)(sc.nextLong) if (p.sum % n.asInstanceOf[Long] == 0l) { println("Yes") } else { println("No") } }