s=input()
code=0
l=0 
if len(s):
    if len(s)<=4:
        l=5
    elif 5<=len(s)<=7:
        l=10
    elif len(s)>=8:
        l=25
code=l        
up=0
lower=0
n=0
asc=0
for i in s:
    if i.islower():
        lower=10
        
    elif i.isupper():
        up=10
         
    elif i.isdigit() : 
        n+=10 
        
    elif i.isascii():
       asc+=10       
code=code+up+lower     
if n>10:
    code=code+20
elif n==10:
    code=code+10
elif n==0:
    code=code   
if asc>10:
    code=code+25
elif asc==10:
    code=code+10
elif asc==0:
    code=code
    
if ((up!=0 and lower==0) or (lower!=0 and up==0)) and n!=0:
    code+=2
elif ((up!=0 and lower==0) or (lower!=0 and up==0)) and n!=0 and asc!=0:
    code+=3
elif up!=0 and lower!=0 and n!=0 and asc!=0:
    code+=5

if code>=90:
    print('VERY_SECURE')
elif code>=80:
    print('SECURE')    
elif code>=70:
    print('VERY_STRONG') 
elif code>=60:
    print('STRONG') 
elif code>=50:
    print('AVERAGE') 
elif code>=25:
    print('WEAK') 
elif code>=0:
    print('VERY_WEAK')   

#print(code)