Five students Atul, Bala, Chetan, Dev, and Ernesto were the only ones who participated in a quiz contest. They were ranked based on their scores in the contest. Dev got a higher rank as compared to Ernesto, while Bala got a higher rank as compared to Chetan. Chetan's rank was lower than the median. Who among the five got the highest rank? Statement A: Atul was the last rank holder. Statement B: Bala was not among the top two rank holders.