Kevin Sun's submission of ATM | CodeChef