Vitalii Kozhukhivskyi's submission of ATM | CodeChef