s, b, c = gets.split s = s.chars b,c = [b,c].map(&:to_i) s[b] = '' s[c] = '' puts s.join