s,t,u = input().split() t = int(t) u = int(u) print("".join([si for i,si in enumerate(s) if (i!=t and i!=u)]))