In the luminous mechanism of the figure, each of the eight buttons can light up in green or blue. The mechanism works as follows: when turned on, all buttons light up blue, and if we press a button, that button and its neighbors switch colors. If we turn on the mechanism and successively press buttons 1, 3, and 5, how many green lights will be on at the end?

![](https://cdn.mathpix.com/cropped/2024_05_01_dbce7bc2a200e234c3e2g-04.jpg?height=407&width=415&top_left_y=371&top_left_x=1321)
(A) 3
(B) 4
(C) 5
(D) 6
(E) 7