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