while True:
try:
password_string = input()
score = 0
if len(password_string) >= 8: # 针对密码长度
score = 25
elif 4 < len(password_string) < 8:
score = 10
elif len(password_string) <= 4:
score = 5
isdigit = 0 # 判断是否有数字
isalpha = 0 # # 判断是否有字母
teshu = 0 # 特殊字符
isalpha_upper = 0 # 字母大写
isalpha_lower = 0 # 字母小写
for i in password_string:
if i.isdigit():
isdigit += 1
elif i.isalpha():
isalpha += 1
if ord(i) < 97: # assi码小于97 为 大写
isalpha_upper += 1
else:
isalpha_lower += 1
else:
teshu += 1
if isalpha > 0: # 有字母
if isalpha_upper != 0 and isalpha_lower != 0: # 且有大小写字母
score += 20
else: # 只有大写或者小写字母
score += 10
if 2 > isdigit > 0:
score += 10
elif isdigit >= 2:
score += 20
if 2 > teshu > 0:
score += 10
elif teshu >= 2:
score += 25
if isalpha_upper != 0 and isalpha_lower != 0 and isdigit != 0 and teshu != 0: # 奖励
score += 5
elif isalpha != 0 and isdigit != 0 and teshu != 0:
score += 3
elif isalpha != 0 and isdigit != 0:
score += 2
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')
except:
break