S, t, u = input().split(' ') for i, s in enumerate(S): if i == int(t) or i == int(u): continue print(s, end='') print()