S,t,u = map(str,input().split()) S = list(S) t = int(t) u = int(u) S[t] = S[u] = "!" ans = "" for s in S: if s != "!": ans += s print(ans)