S,t,u=raw_input().split() ans='' for i in range(len(S)): if i==int(t): continue if i==int(u): continue ans+=S[i] print ans