Solve SRM 156DIV1 550 points