The output is 101 when system state is X.
The output is 110 when system state is Y.
The output is 001 when system state is Z.