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