Contest “Respublika” [68], 2004
Other thematic variants of this Problem, please, see below: Changed on 17-03-2021.