Sitesh Roy's submission of ATM | CodeChef