

Time Limit: 2 sec / Memory Limit: 1024 MiB
配点 : 100 点
問題文
英小文字からなる N 文字の文字列 S が与えられます。
S の先頭から A 文字、末尾から B 文字取り除いた N-A-B 文字の文字列を出力してください。
制約
- 1\le N\le20
- 0\le A
- 0\le B
- A+B\lt N
- S は英小文字からなる N 文字の文字列
- N,A,B はすべて整数
入力
入力は以下の形式で標準入力から与えられる。
N A B S
出力
S の先頭から A 文字、末尾から B 文字取り除いた文字列を出力せよ。
入力例 1
7 1 3 atcoder
出力例 1
tco
atcoder
の先頭から 1 文字、末尾から 3 文字取り除くと tco
になります。
入力例 2
1 0 0 a
出力例 2
a
出力すべき文字列が S と等しい場合もあります。
入力例 3
20 4 8 abcdefghijklmnopqrst
出力例 3
efghijkl
Score : 100 points
Problem Statement
You are given an N-character string S consisting of lowercase English letters.
Output the string of N-A-B characters obtained by removing the first A characters and the last B characters from S.
Constraints
- 1\le N\le20
- 0\le A
- 0\le B
- A+B\lt N
- S is a string of N characters consisting of lowercase English letters.
- N, A, and B are all integers.
Input
The input is given from Standard Input in the following format:
N A B S
Output
Output the string obtained by removing the first A characters and the last B characters from S.
Sample Input 1
7 1 3 atcoder
Sample Output 1
tco
Removing the first one character and the last three characters from atcoder
gives tco
.
Sample Input 2
1 0 0 a
Sample Output 2
a
The string to be output may be equal to S.
Sample Input 3
20 4 8 abcdefghijklmnopqrst
Sample Output 3
efghijkl