Heterochain aliphatic poly-N-oxide copolymers of general formula (1), where R═N, CH; x=2 or 4; y=0 or 2; n=10-1000; q=(0.1-0.9)n; z=(0.1-0.9)n, exhibit pharmacological activity, including an antioxidant effect and a therapeutic effect as a detoxicant and immunomodulating agent. The copolymer may be used as vaccinating agent also comprising an antigen and a vaccine against hepatitis A and hepatitis B, which contains a vaccine preparation comprising HVA Ag and HBsAg simultaneously or vaccine preparations against hepatitis A and against hepatitis B. The invention represents a new class of compounds that exhibit a wide range of pharmacological activity and a vaccination effect as well as increased safety in use, and is directed towards increasing manufacturability, cost efficiency and environmental safety in the production of drugs.