Please solve the programming task below using a self-contained code snippet in a markdown code block.

Given an integer n, add a dot (".") as the thousands separator and return it in string format.
 
Please complete the following python code precisely:
```python
class Solution:
    def thousandSeparator(self, n: int) -> str:
```