s,t,u = map(str, input().split()) if t==u: print(s.replace(s[int(t)], '')) else: print(s.replace(s[int(t)], '').replace(s[int(u)], ''))