lcsm solution