a = int(input())
b = input()
for i in range(a):
s = input().split()
if s[0] == "1":
b += s[1]
print(b)
elif s[0] == "2":
first, second = int(s[1]), int(s[2]) + int(s[1])
b = b[first:second]
print(b)
elif s[0] == "3":
first = int(s[1])
b = b[0:first] + s[2] + b[first:]
print(b)
elif s[0] == "4":
print(b.find(s[1]))
不理解为什么提示Wrong Answer.wrong answer On line 1 column 6, read (ASCII 13), expected L.