#Sは芸名、t,uは師匠からの助言位置 S, t, u = input().split() S = list(S) t = int(t) u = int(u) if t == u: del S[t] else: del S[t] del S[u] S = ''.join(S) print(S)