def format_mac(str_hex):
    """Accept a string of hexadecimal digits and return a string of MAC address format.
    
    Arguments:
    str_hex: a string of hexadecimal digits
    """
    i = 1
    str_mac = ':'.join([str_hex[i:i+2] for i in range(0, 12, 2)])
    return str_mac