Solve SRM521IIEMH.