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