# 先统计数字、大小写字母、字符的个数再进行判断 s = input() score = 0 # 一、密码长度 if len(s) <= 4: score += 5 elif len(s) <= 7: score += 10 else: score +=25 count_upper = 0 count_lower = 0 count_number = 0 zm = 'abcdefghijklmnopqrstuvwxyz' ZM = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' for i in s: if i in zm: count_lower += 1 if i in ZM: count_upper += 1 if i.isdigit(): count_number += 1 count_zf = len(s) - count_lower - count_upper - count_number # 二、字母 if count_lower > 0 and count_upper == 0 or count_lower == 0 and count_upper > 0: score += 10 if count_lower > 0 and count_upper > 0: score +=20 # 三、数字 if count_number == 1: score += 10 if count_number > 1: score += 20 # 四、符号 if count_zf == 1: score += 10 if count_zf > 1: score += 25 # 五、奖励(只能选符合最多的那一种奖励 l = [] if count_lower + count_upper > 0 and count_number > 0: l.append(2) if count_lower + count_upper > 0 and count_number > 0 and count_zf > 0: l.append(3) if count_lower > 0 and count_upper > 0 and count_number > 0 and count_zf > 0: l.append(5) if len(l) != 0: score += max(l) # 最后的评分标准 if score >= 90: print("VERY_SECURE") elif score >= 80: print("SECURE") elif score >= 70: print("VERY_STRONG") elif score >= 60: print("STRONG") elif score >= 50: print("AVERAGE") elif score >= 25: print("WEAK") else: print("VERY_WEAK")