S, t, u = input().split() s = '' for i in range(len(S)): if i != int(t) and i != int(u): s += S[i] print(s)