Kanv's submission of ATM | CodeChef