import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); //abc int n = sc.nextInt(); //0 int m = sc.nextInt(); //2 String ans = ""; for (int i = 0; i < s.length(); i++) { if (i == n) { ans += s.substring(m, m + 1); } else if (i == m) { ans += s.substring(n, n + 1); } else{ ans += s.charAt(i); } } System.out.println(ans); sc.close(); } }