Section 23. Whoever contributes money or any other property having a value in money to an organization which he knows to be a subversive organization shall be punished by imprisonment in the state prison for not more than three years or in jail for not more than two and one half years or by a fine of not more than one thousand dollars.