Joshita's submission of ATM | CodeChef