l, r, m = gets.split.map(&:to_i) if r - l + 1 >= m p m exit end p r - l + 1