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