The two types of closed circuits are