def METHOD_NAME(script: bytes) -> bool:
    """
    Determine whether a script is a P2PK output script.
    :param script: The script
    :returns: Whether the script is a P2PK output script
    """
    return (len(script) == 35 or len(script) == 67) and (script[0] == 0x21 or script[0] == 0x41) and script[-1] == 0xac