import sys
while True:
try:
s = input()
total = 0
n_num = 0
c_u = 0
c_l = 0
n_other = 0
l = len(s)
if l <= 4:
total += 5
elif 5 <= l <= 7:
total += 10
elif l >= 8:
total += 25
for c in s:
if c.isupper():
c_u += 1
elif c.islower():
c_l += 1
elif c.isdigit():
n_num += 1
else:
n_other += 1
if c_u:
total += 10
if c_l:
total += 10
if n_num:
total += 10
if n_num > 1:
total += 10
if n_other:
total += 10
if n_other > 1:
total += 15
if (c_u or c_l) and n_num:
total += 2
if n_other:
total += 1
if c_l and c_u:
total += 2
if total >= 90:
print('VERY_SECURE')
elif total >= 80:
print('SECURE')
elif total >= 70:
print('VERY_STRONG')
elif total >= 60:
print('STRONG')
elif total >= 50:
print('AVERAGE')
elif total >= 25:
print('WEAK')
else:
print('VERY_WEAK')
except:
break