S, t, u = input().split() s = '' for i in range(len(S)): if i == int(t) or i == int(u): continue else: s += S[i] print(s)