c,i,j;char s[99]; main(){ while(~scanf("%i ",&i)) for(;(c=getchar())>10;s[i++]=c); for(;s[j]>10;putchar(s[j++]));}
2 ob 5 rba 0 fooba 8 z
foobarbaz
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!