If S is twice that means H is twice two. Since our Hs can't be back to back, that means one must be before three, so I must go in the first week. This also means that our two SH blocks must go in weeks two and four. So we have
I H _ H _ S _ S
Since all of them must appear, we know that g must go in three, which forces p into 1, and r goes in the last remaining spot, three.