from typing import Callable


def run_crcmod_func(crc_func: Callable[[bytes], int], *nums: int) -> int:
    """
    Pass inputs to the CRC function and return the output
    :param crc_func: CRC function created using crcmod.mkCrcFun
    :param nums: CRC inputs
    :return: CRC output
    """
    crc_input = bytes(0)
    for num in nums:
        num = int(num)
        crc_input += num.to_bytes((num.bit_length() + 7) // 8, byteorder='big')
    return crc_func(crc_input)