<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def _find_types(pkgs):
    '''Form a package names list, find prefixes of packages types.'''
    return sorted({pkg.split(':', 1)[0] for pkg in pkgs
                   if len(pkg.split(':', 1)) == 2})