Volodymyr Radyuk's submission of ATM | CodeChef