s,t,u = map(str,input().split()) t = int(t) u = int(u) for i in range(len(s)): if i != t and i != u: print(s[i],end="") print()