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