What is the output Y in the following circuit, when all the three inputs A, B, C are first 'zero' and then 'one'?