import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String S = scan.next(); int i = scan.nextInt(); int j = scan.nextInt(); scan.close(); String[] a = S.split(""); String t1 = a[j]; a[j] = a[i]; a[i] = t1; for(String s : a) { System.out.print(s); } System.out.println(); } }