Atul Malakar's submission of ATM | CodeChef