import re
def fun(pwd):
score = 0
# 规则一、密码长度:
if len(pwd)<=4:
score += 5
elif len(pwd)<=7:
score += 10
else:
score += 25
# 规则二、字母:
if re.findall('[a-z]', pwd) and re.findall('[A-Z]', pwd):
score += 20
elif re.findall('[a-z]', pwd) or re.findall('[A-Z]', pwd):
score += 10
else:
score += 0
# 规则三、数字:
count = len(''.join(re.findall(r'\d+', pwd)))
if count==0:
score += 0
elif count==1:
score += 10
else:
score += 20
# 规则四、符号:
count = len(''.join(re.findall('[^0-9a-zA-Z]', pwd)))
if count==0:
score += 0
elif count==1:
score += 10
else:
score += 25
# 规则五、奖励:
if re.findall('[a-z]', pwd) and re.findall('[A-Z]', pwd) and re.findall(r'\d+', pwd) and re.findall('[^0-9a-zA-Z]', pwd):
score += 5
elif re.findall('[a-zA-Z]', pwd) and re.findall(r'\d+', pwd) and re.findall('[^0-9a-zA-Z]', pwd):
score += 3
elif re.findall('[a-zA-Z]', pwd) and re.findall(r'\d+', pwd):
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')
elif score>=0:
print('VERY_WEAK')
pwd = input()
fun(pwd)