shadab's submission of ATM | CodeChef