RAM's submission of ATM | CodeChef