Kirchhoff's junction rule

The current into a junction equals the current out, because charge is conserved and cannot pile up in a wire; with the loop rule it solves any circuit of resistors and batteries.

From AP Physics 2.