A compound is reacted according to the reaction sequence given below to give product 'A'. Identify 'A':
A compound X is made to react with concentrated hydrochloric acid. The product formed by this reaction is Y. The compound Y is made to react with Z which results in the production of a brown precipitate. Identify X, Y and Z.