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