char s[];main(n,m){for(n=read(0,s,s);m<0?m=printf(s+--n):putchar(m--?s[n+m]:10););}