s,t,u=input().split() s=[*s] if t==u: s[int(t)]='-' print(''.join(s).replace('-','')) else: s[int(t)]='-' s[int(u)]='-' print(''.join(s).replace('-',''))