S, T, U = raw_input().split(' ') s, t, u = list(S), int(T), int(U) s[t] = ' ' s[u] = ' ' print(''.join(c for c in s if c != ' '))