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