Ashesh Vidyut's submission of ATM | CodeChef