The output Q is set by the input S, is reset by the input R, and keeps its value in between. QI is the inverse of Q.
Q
S
R
QI