import sys (s, t, u) = input().split() t = int(t) u = int(u) for i, c in enumerate(s): if i != t and i != u: sys.stdout.write(c) print('')