4. A hundred chairs are arranged in a circle, and the numbers 1 to 100 are written on them in sequence. Ivica skips the first six chairs and places a candy on the seventh, then skips the next 6 and places another candy on the chair numbered 14. He continues in this way around the circle, placing one candy on every seventh chair until he has used up 2023 candies. What is the number of the chair on which Ivica placed the last candy?