def check(pw):
    if (('i' in pw) or ('o' in pw) or ('l' in pw)):
        return False
    three_match = False
    for seq in three_seq:
        if (seq in pw):
            three_match = True
    if (not three_match):
        return False
    doubles = set(re.findall('(.)\\1', pw))
    if (len(doubles) < 2):
        return False
    return True
def check(pw):
    if (('i' in pw) or ('o' in pw) or ('l' in pw)):
        return False
    three_match = False
    for seq in three_seq:
        if (seq in pw):
            three_match = True
    if (not three_match):
        return False
    doubles = set(re.findall('(.)\\1', pw))
    if (len(doubles) < 2):
        return False
    return True