Sai Rathan's submission of ATM | CodeChef