hemanth baliji's submission of ATM | CodeChef