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>s.Length) { ans = s1.Remove(s.Length - 2, 2); } else { ans = s1.Remove(a, 1); if (a != b && b != 0) { ans = ans.Remove(b - 1, 1); } else { ans = ans.Remove(b, 1); } } Console.WriteLine(ans); } } }