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