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

Imagine you have a special keyboard with the following keys:

A: Print one 'A' on the screen.
Ctrl-A: Select the whole screen.
Ctrl-C: Copy selection to buffer.
Ctrl-V: Print buffer on screen appending it after what has already been printed.

Given an integer n, return the maximum number of 'A' you can print on the screen with at most n presses on the keys.
 
Please complete the following python code precisely:
```python
class Solution:
    def maxA(self, n: int) -> int:
```