Edwin Guzman's submission of ATM | CodeChef