A full adder and an XOR gate are used to design a digital circuit with inputs \( X, Y, Z \), and output \( F \), as shown below. The input \( Z \) is connected to the carry-in input of the full adder.
If the input \( Z \) is set to logic ‘1’, then the circuit functions as _________ with \( X \) and \( Y \) as inputs.