import java.util.Scanner; public class Main_729_swapString { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String value0 = scan.next(); int value1 = scan.nextInt(); int value2 = scan.nextInt(); scan.close(); String result = String.join("", swapString(value0, value1, value2)); System.out.println(result); } static String[] swapString(String value0, int value1, int value2) { String[] textList = value0.split(""); String targetString1 = textList[value1]; String targetString2 = textList[value2]; textList[value2] = targetString1; textList[value1] = targetString2; return textList; } }