a,b,c=input().split() ans="" b=int(b) c=int(c) for i in range(len(a)): if i!=b and i!=c: ans+=a[i] print(ans)