how to count this


-----st-----st----
--------amc-------
-----mc-----mc----
--------dmc-------
dl---dc----dc---dr