s, t, u = gets.chomp.split(" ") list = s.split(""); list.delete_at(t.to_i) list.delete_at(u.to_i) list.compact.each{|val| print val}