Alfarhan Zahedi's submission of ATM | CodeChef