Problem

Source: 2nd National Women´s Contest of Mexican Mathematics Olympiad 2023 , level 1 p1

Tags: Mexico



Gabriela found an encyclopedia with $2023$ pages, numbered from $1$ to $2023$. She noticed that the pages formed only by even digits have a blue mark, and that every three pages since page two have a red mark. How many pages of the encyclopedia have both colors?