str,a,b = gets.split(" ") n = 0 str.split(//).each{|ch| if n != a.to_i && n != b.to_i print ch end n += 1 } print "\n"