When the election is by ballot, the marked ballot must be delivered to one of the judges so folded as to conceal its contents, and the judges shall deposit the ballots in a box provided for that purpose.