apple pie's submission of Janmansh and Games | CodeChef