vertical 2, horizontal 1 grammar output