s,t,u=gets.split s.chars.map.with_index{|c,i|i!=t.to_i&&i!=u.to_i&&(print c)}