import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String[] str = sc.next().split(""); int from = sc.nextInt(); int to = sc.nextInt(); // 入れ替える文字を対比 String fromStr = str[from]; String toStr = str[to]; // 文字入れ替え str[from] = toStr; str[to] = fromStr; String res = String.join("", str); System.out.print(res); } }