The circulatory system consists of the heart and blood vessels. The heart is a four-chambered muscular pump made of cardiac muscle that is located between the lungs. It has two atria that receive blood and two ventricles that pump blood out. The heart is surrounded by membranes and has three layers: epicardium, myocardium, and endocardium. It receives blood through veins and pumps it through arteries via the pulmonary and systemic circuits. The heart also has valves that ensure one-way blood flow and septa that divide its chambers.