s, t, u = gets.chomp.split t, u = [t, u].map(&:to_i) a = (t == u) ? [t] : [t, u].sort.reverse a.each do |i| s[i] = '' end puts s