def pass_validity(p):
 import re
 
 x = True
 while x:  
    if (len(p)<6 or len(p)>12):
        break
    elif not re.search("[a-z]",p):
        break
    elif not re.search("[0-9]",p):
        break
    elif not re.search("[A-Z]",p):
        break
    elif not re.search("[$#@]",p):
        break
    elif re.search("\s",p):
        break
    else:
        return True
        x=False
        break
 if x:
    return False
def pass_validity(l):
    import re
    x = True
    while x:
        if len(l) < 6 or len(l) > 12:
            break
        elif not re.search("[a-z]", l):
            break
        elif not re.search("[0-9]", l):
            break
        elif not re.search("[A-Z]", l):
           
            break
        elif not re.search("[$#@]", l):
            break
        elif re.search("s", l):
            break
        else:
            return True
            x = False
            break
    if x:
        return False