#include
#include "string.h"
int main(void){
char s[100],b[100],m,n,i;
printf("Input a string...\ns=");
gets(s);
printf("Input m & n(int m,n>=0)...\n");
if(scanf("%d%d",&m,&n)!=2 || m<0 || m>(i=strlen(s)) || n<0 || n>i){
printf("Input error, exit...\n");
return 0;
}
for(i=0;ib[i]='\0';
printf("%s\n",b);
return 0;
}