Grammic monoids with three generators