for x=1to 200input""n input""s$ input""a for i=1to abs(a)if a>0?s$; if a<0for j=1to n?mid$(s$,n-j+1,1);next next ?next