s, t, u = raw_input().split() t = int(t) u = int(u) ls = list(s) ls[t] = "" ls[u] = "" print "".join(ls)