Three logic gates are connected as shown in the figure. If the inputs are \( A = 1 \) and \( B = 1 \), then the values of \( y_1 \) and \( y_2 \) respectively are: