s, t, u = input().split() t = int(t) u = int(u) for i in range(len(s)): if i == t or i == u: continue print(s[i], end="") print("")