from typing import Tuple


def decrypt(cipher: int, PR: Tuple[int, int]) -> int:
    """Decryption

    Param:
        cipher: int -- value to decrypt
        PR: tuple of ints -- key

    Returns message
    """
    d, n = PR
    decipher = (cipher**d) % n
    return decipher