Wrote the results for all possibilities.