read n a b
read -d ""
ans1=`echo "${REPLY}" | sort | awk -v AA=$a '{if($1<AA)print $1}' | grep -v "^$" | wc -l`
ans2=`echo "${REPLY}" | sort | awk -v BB=$b '{if($1>=BB)print $1}' | grep -v "^$" | wc -l`
echo $((ans1 + ans2))
