s=input().strip()
score=0
dx=0
xx=0
sz=0
fh=0
shuzi=['1','2','3','4','5','6','7','8','9','0']
#统计
if len(s)>=8:
score+=25
elif len(s)>=5 and len(s)<=7:
score+=10
elif len(s)<=4:
score+=5
for i in s:
if i.isalpha() and i.islower():
xx+=1
elif i.isalpha() and i.isupper():
dx+=1
elif i in shuzi:
sz+=1
else:
fh+=1
#计算分数
#数字
if sz==0:
score+=0
if sz==1:
score+=10
if sz>1:
score+=20
#字母
if dx==0 and xx==0:
score+=0
if (dx > 0 and xx == 0) or (xx > 0 and dx == 0):
score+=10
if dx>=1 and xx>=1 :
score+=20
#符号
if fh==0:
score+=0
if fh==1:
score+=10
if fh>1:
score+=25
#奖励
if dx>=1 and xx>=1 and sz>=1 and fh>=1:
score+=5
elif dx+xx>=1 and sz>=1 and fh>=1:
score+=3
elif dx+xx>=1 and sz>=1 and fh==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')
#print(score)
#print(len(s))