Draw the output waveform at X

Draw the output waveform at X, using the given inputs A and 5 for the logic circuit shown below. Also, identify the logic operation performed by this circuit.

Logic operation of the graphic circuit