In the following reactions The major products (A) and (C) are respectively