S, t, u = input().split() t = int(t) u = int(u) mn = min(t, u) mx = max(t, u) print(S[:mn] + S[mn+1:mx] + S[mx+1:])