using System; public class Hello { public static void Main() { var s = Console.ReadLine().Trim(); string[] line = Console.ReadLine().Trim().Split(' '); var a = int.Parse(line[0]); var b = int.Parse(line[1]); var s2 = s.ToCharArray(); var te = s2[a]; s2[a] = s2[b]; s2[b] = te; Console.WriteLine(new string(s2)); } }