import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); char[] arr = sc.next().toCharArray(); int i = sc.nextInt(); int j = sc.nextInt(); char tmp = arr[i]; arr[i] = arr[j]; arr[j] = tmp; System.out.println(arr); } }