s,t,u=input().split() t,u=int(t),int(u) print("".join(j for i,j in enumerate(s) if i!=t and i!=u))