K Sreeram's submission of ATM | CodeChef