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