aaa = raw_input().split(" ") bbb = aaa[0] t = int(aaa[1]) u = int(aaa[2]) S = [] for i in range(len(bbb)): S.append(bbb[i]) if t == u: del S[t] else: if t < u: del S[t] del S[u-1] else: del S[u] del S[t-1] ans = "" for i in S: ans = ans + i print ans