Latching relay

Input S sets output Q. Another input R resets the output Q.

A latching relay is a simple logic memory. The output value depends on the input states and on the previous output status.