Janagama Prabhakar's submission of ATM | CodeChef