lazy_creature's submission of ATM | CodeChef