s,t,u=input().split() list=[] for i in range(len(s)): list.append(s[i]) i=i+1 if u==t: list.pop(int(t)-1) elif u>t: list.pop(int(u)-1) list.pop(int(t)-1) elif t>s: list.pop(int(t)-1) list.pop(int(u)-1) a=str() for i in range(len(list)): a=a+list[i] i=i+1 print(a)