Sumit's submission of ATM | CodeChef