sed '1d' | sed 's/ /\n/g' >/tmp/input
function end() {
  echo $1
  exit
}
function ex() {
  (($(head -n 2 /tmp/input | wc -l) <= 1)) && end Yes
  max=$(cat -n /tmp/input | sort -k 2n | tail -n 1)
  m=$(echo $max | cut -d" " -f 2)
  n=$(echo $max | cut -d" " -f 1)
  while read a
  do
    ((m-a>1)) && end No
  done < <(tail -n +$n /tmp/input | sort -unr )
  sed -ie "$n, \$d" /tmp/input
  ex
}
ex