s,t,u=raw_input().split() s=[i for i in s] s[int(t)]="@" s[int(u)]="@" print "".join(s).replace("@","")