s, ts, us = input().split() t = int(ts) u = int(us) a = min(t, u) b = max(t, u) res = s[0:a] + s[a+1:b] + s[b+1:] print(res)