s,t,u=input().split() s=list(s) t,u=int(t),int(u) if u==t:s.pop(t);print("".join(s)) else: if t