apple pie's submission of Good Program | CodeChef