def replace_max_specialchar(text, n):
    result = []
    replaced = 0
    for ch in text:
        if replaced < n and ch in {' ', ',', '.'}:
            result.append(':')
            replaced += 1
        else:
            result.append(ch)
    return ''.join(result)