描述
给定字符串,请输出其第start个到第end个且间隔为step的子序列,包含start位置,不包含end位置。
输入
输入第一行为一字符串,不超过20个字符,不包含空格。
第二行为开始位置start,1<=start<=字符串长度。
第三行为结束位置end,start<end<=字符串字符串长度+1。
第四行为间隔数step,0<=step<=字符串字符串长度。
输出
输出题目要求的字符串。
样例输入
ABCDEF
2
6
2
样例输出
BE
n = input()
a = int(input())
b = int(input())
c = int(input())
for i in range(a-1, b-1, c+1):
print(n[i], end='')