<?php
fscanf(STDIN,"%d",$n);
$array = array();
for ($i=0; $i<$N; $i++){
  fscanf(STDIN, "%d", $tmp);
  $S[] = $tmp;
}
$total = 0;
foreach ($array as $element){
  $total += $element;
}
echo $total % $n;
$ans = ($total % $n) == 0 ? 'Yes' : 'No';
echo $ans;