Solve the mathematical puzzle.

Determine the digits of F from these clues.

The digits of F are all the same.
The sum of all the digits of F is 12.
The answer when any two of the digits are multiplied together is also 9.

F is a four-digit number.