s, *tu = input().split() t, u = map(int, tu) if t > u: t, u =u, t s = s[:u] + s[u+1:] if t != u: s = s[:t] + s[t+1:] print(s)