X=S+1X-R+1X+1,