/*
#include <stdio.h>
char mysubstr(char str, int start, int count) {
int i;
char abc[1000];
for (i = start; i < count + start; i++) {
abc[i] = str[i];
}
return &abc[start];
}
int main() {
char str[100];
int a, b;
scanf("%s", str);
scanf("%d %d", &a, &b);
printf("%s", mysubstr(str, a, b));
return 0;
}
#include <stdio.h>
int main(){
int a[5] = {1,2,3,4,5};
int* b;
b=a;
printf("a[0]의 주소는 %d\n",&a[0]);
printf("b : %d\n",b);
b=b+1;
printf("b+1 : %d\n",b);
double c[5] = {1,2,3,4,5};
double* d=c;
printf("d : %d\n",d);
d=d+1;
printf("d+1 : %d\n",d);
}
#include <stdio.h>
int main(){
int a = 10;
int b = 20;
int c;
int *x[3];
x[0] = &a;
x[1] = &b;
x[2] = &c;
x[2] = x[0] + *x[1];
printf("c : %d\n", c);
}
#include <stdio.h>
int main(){
int i;
char my[6][9] = {"j", "so", "tao" , "ghan", "haoue","dyd"};
for(i=0;i<6;i++)
printf("%s\n",my[i]);
}
#include <stdio.h>
int main(){
int i;
char* my[6] = {"j", "so", "tao" , "ghan", "haoue","dyd"};
for(i=0;i<6;i++)
printf("%s\n",my[i]);
}*/
#include <stdio.h>
void mysubstr(char *str, int start, int count){
for(int i = start;i < count + start;i++)
{
printf("%c",str[i]);
}
}
int main(){
char str[101]={};
int a,b;
scanf("%s %d %d",str,&a,&b);
mysubstr(str,a,b);
return 0;
}