Nice to have an empty afternoon. I found my error, in the value of L.
And because I could see a couple of differences from what has been entered so far on the forum, I went through and reconciled every expression.
The string of letters I gave before is wrong. It should read ILAPCREMS, with the last letter being T.
Which clashes with the comment that S=7. Surely S=8.