Raja Gopal's submission of ATM | CodeChef