David Vulakh's submission of ATM | CodeChef