s, t, u = input().split() t = int(t) u = int(u) t, u = min(t, u), max(t, u) ans = s[:t] + s[t+1:u] + s[u+1:] print(ans)