**Input:** An operation that implements a single-qubit unitary transformation:
either the $H$ gate or the $X$ gate. 

**Output:**  0 if the given operation is the $H$ gate, 1 if the given operation is the $X$ gate.

The operation will have Adjoint and Controlled variants defined.
You are allowed to apply the given operation and its adjoint/controlled variants at most **twice**.
