s, n1, n2 = map(str, input().split()) s = [] n1, n2 = int(n1), int(n2) if n1 == n2: s.pop(t) print(''.join(s)) else: s[n1] = '' s[n2] = '' print(''.join(s))