apple pie's submission of Lucky Number | CodeChef