Manav Bhardwaj's submission of ATM | CodeChef