List all possible outcomes combinations for 8 soccer matches.

An example will be as follows.

List all possible outcomes for 3 matches.

That will be 27 possible outcomes.

I would like results for my request of 8 matches to be displayed as follows.

HHH

HHD

HHA

HDH

HDD

HDA

HAH

HAD

HAA

DHH

DHD

DHA

DDH

DDD

DDA

DAH

DAD

DAA

AHH

AHD

AHA

ADH

ADD

ADA

AAH

AAD

AAA

Where:

H=HOME

D=DRAW

A=AWAY

Is there a way i can have the possible outcomes listed as above for the outcomes of 8 football matches?

Please help me out.

Thank you so very much!!!!