def is_strong(p):
    return len(p) >= 8 and any(c.isdigit() for c in p) and any(c.isupper() for c in p) and any(c.islower() for c in p)
assert is_strong("Password1")
assert not is_strong("pass1")
assert not is_strong("PASSWORD1")
print("SELF-TEST PASS")