S, t, u = input().split() t, u = int(t), int(u) q = "" for i in range(len(S)): if i == t or i == u: continue else: q += S[i] print(q)