Detect the most frequent digit in a given text.
The answer is 1041.
The most frequent digit in the given text is 1.
Complete the following task based on the instruction and optional input provided.### Instruction:
Detect the most frequent digit in a given text.

### Input:
The answer is 1041.

### Output:
The most frequent digit in the given text is 1.