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