s, t, u = input().split() n = "" for i, v in enumerate(s): if i != int(t) and i != int(u): n += v print(n)