Avish Kaushik's submission of ATM | CodeChef