P24993 [AtCoder] [ARC049A] "Emphasis"
入门
题目描述

Problem Description

Given a string $ S $ and non-negative integers $ A, B, C, D $.

Output the string $ S $ with double quotes " inserted after the $ A, B, C, D $-th characters.

Note that the insertion after the 0-th character refers to the beginning of the string.

Input Format

The input is given from the standard input in the following format:

$ S $ $ A $ $ B $ $ C $ $ D $

  • The first line contains the string $ S (3 ≦ |S| ≦ 100) $.
  • The second line contains the non-negative integers $ A, B, C, D (0 ≦ A < B < C < D ≦ |S|) $ separated by spaces.
  • $ |S| $ denotes the length of $ S $.
  • $ S $ consists of alphabetic characters and underscores (_).

Output Format

Output the string with double quotes " inserted.

Sample Input and Output

Sample Input #1

MinnnahaNakayoshi
0 6 8 17

Sample Output #1

"Minnna"ha"Nakayoshi"

Sample Input #2

Niwawo_Kakemeguru_Chokudai
11 17 18 26

Sample Output #2

Niwawo_Kake"meguru"_"Chokudai"

Sample Input #3

___
0 1 2 3

Sample Output #3

"_"_"_"

Notes/Hints

None

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
MinnnahaNakayoshi 0 6 8 17
样例输出
"Minnna"ha"Nakayoshi"