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