#include<stdio.h>
#include<string.h>
int main(){
    char word[20];
    scanf("%s\n",word);
    int sub,L;
    scanf("%d\n",&sub);
    scanf("%d",&L);
    if(L>strlen(word)||sub+L>strlen(word)||su){
        printf("Invalid input");
        return 0;
    }
    for(int i=sub;i<=strlen(word);i++){
        for(int j=i;j<i+L;j++){
           printf("%c",word[j]);
        }
        return 0;
    }
}