input = gets.split(" ") a = input[1].to_i b = input[2].to_i if a == b input[0].slice!(a) puts input[0] elsif a < b input[0].slice!(a) input[0].slice!(b-1) puts input[0] else input[0].slice!(b) input[0].slice!(a-1) puts input[0] end# your code goes here# your code goes here