#一项项加起来
fuhao = '!\"#$%&\'()*+,-./' + ':;<=>?@' + '[\]^_`' + '{|}~'
while True:
try:
p = input()
score = 0
if len(p) <= 4:
score += 5
elif len(p) <= 7:
score += 10
else:
score += 25
#print("len score:" + str(score))
havelower = False
haveupper = False
for a in p:
if not havelower and a.islower():
score += 10
havelower = True
if not haveupper and a.isupper():
score += 10
haveupper = True
if havelower and haveupper:
break
#print("zimu score:" + str(score))
#score = 0
num_count = 0
for a in p:
if a.isnumeric():
score += 10
num_count += 1
if num_count >= 2:
break
#print("num score:" + str(score))
#score = 0
fuhao_count = 0
for a in p:
if a in fuhao:
fuhao_count += 1
if fuhao_count == 1:
score += 10
else:
score += 15
if fuhao_count >= 2:
break
#print("fuhao score:" + str(score))
#score = 0
if havelower and haveupper and num_count > 0 and fuhao_count > 0:
score += 5
elif (havelower or haveupper) and num_count > 0 and fuhao_count > 0:
score += 3
elif (havelower or haveupper) and num_count:
score += 2
#print("score:" + str(score))
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