The inputs and outputs for different time intervals are given below the NAND gate.
\[
\begin{array}{|c|c|c|c|}
\hline
\text{Time} & \text{Inputs A} & \text{Inputs B} & \text{Outputs Y} \\
\hline
t_1 \text{ to } t_2 & 0 & 1 & P \\
t_2 \text{ to } t_3 & 0 & 0 & Q \\
t_3 \text{ to } t_4 & 1 & 0 & R \\
t_4 \text{ to } t_5 & 1 & 1 & S \\
\hline
\end{array}
\]
The values taken by \(P\), \(Q\), \(R\), and \(S\) are respectively: