c,n,m = gets.split n.to_i == m.to_i ? c.slice!(n.to_i) : c.slice!(n.to_i).slice!(m.to_i) puts c