b a x b a y0 y1 y2 0 0 0 0 0 1 0 0 0 1 0 0 1 1 0 1 0 0 2 0 1 0 0 1 0 0 0 3 0 1 1 0 0 1 0 0 4 1 0 0 1 1 0 1 0 5 1 0 1 1 0 0 0 0 6 1 1 0 0 0 1 0 0 7 1 1 1 1 1 1 0 1