s,t,u=input().split() t=int(t) u=int(u) for i in range(len(s)): if all([i!=t,i!=u]): print(s[i],end='')