#abc236a. A - chukodai

A - chukodai

Score : 100100 points

问题描述

你将得到一个由小写英文字母组成的字符串 SS

交换 SS 开头的第 aa 个和第 bb 个字符,并输出变换后的字符串。

以上为通义千问 qwen-max 翻译,仅供参考。

Problem Statement

You are given a string SS consisting of lowercase English letters.

Swap the aa-th and bb-th characters from the beginning of SS and print the resulting string.

Constraints

  • SS is a string consisting of lowercase English letters.
  • The length of SS, S|S|, satisfies 2S102 \leq |S| \leq 10.
  • 1a<bS1 \leq a < b \leq |S|
  • aa and bb are integers.

Input

Input is given from Standard Input in the following format:

SS

aa bb

Output

Print the answer.

Sample Input 1

chokudai
3 5

Sample Output 1

chukodai

After swapping the 33-rd character o and 55-th character u of chokudai, we have chukodai.

Sample Input 2

aa
1 2

Sample Output 2

aa

In this sample, after swapping the 11-st and 22-nd characters of SS, we have the same string as SS.

Sample Input 3

aaaabbbb
1 8

Sample Output 3

baaabbba

update @ 2024/3/10 10:13:07