S, t, u = input().split() S = list(S) t = int(t) u = int(u) if t == u: S.pop(t) else: a = max(t, u) b = min(t, u) S.pop(a) S.pop(b) print(''.join(S))