s, t, u = map(str, input().split()) s = list(s) t, u = int(t), int(u) s[t] = '' s[u] = '' print(''.join(s))