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