s, t, u = input().split() s = list(s) t, u = int(t), int(u) if t == u: s.pop(t) else: s.pop(t) s.pop(u) print(''.join(s))