------
## 最终结论
```python
def modp(n: int, p: int):
    return pow(2, n, p)
```
```