amarmalik's submission of ATM | CodeChef