using System; namespace yukicoder { class Program { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); string ans = ""; string s1 = s[0]; int a = int.Parse(s[1]); int b = int.Parse(s[2]); if (a>s1.Length) { ans = s1.Remove(s1.Length - 2, 2); } else { ans = s1.Remove(a, 1); if (a != b ) { ans = ans.Remove(b , 1); } } Console.WriteLine(ans); } } }