Question Statement: Monk is standing at the door of his classroom. There are currently N students in the class, i\'th student got Ai candies. There are still M