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