Tapesh JoHam's submission of ATM | CodeChef