import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.nextLine(); int i = sc.nextInt(); int j = sc.nextInt(); String[] ary = new String[s.length()]; for (int idx = 0; idx < s.length(); idx++) { ary[idx] = String.valueOf(s.charAt(idx)); } String w = ""; w = ary[i]; ary[i] = ary[j]; ary[j] = w; for (String value : ary) { System.out.print(value); } sc.close(); } }