shangjingbo's submission of Se7en | CodeChef