'''
解题思路:
统计:数字,大写,小写,其它这四种字符个数,然后按规则打分
注意:“全都是小(大)写字母”,是指字母中,要么全是大写,要么全是小写。不是对所有字符而言的。
'''
def test(s):
    if s.isdigit():
        return 0        
    elif s.islower():
        return 1    
    elif s.isupper():
        return 2
    else:
        return 3

while 1:
    try:

        s = input().strip()
        L = [0,0,0,0]
        for i in range(len(s)):
            j = test(s[i])
            L[j] = L[j] + 1
        #print(L)
        #-----------------------------------------
        p = 0
        if len(s)<=4:
            p += 5
        elif 5<=len(s) and len(s)<=7:
            p += 10
        elif len(s)>=8:
            p += 25
        #-----------------------------------------
        if L[1]==0 and L[2]==0:
            pass
        elif (L[1]>0 and L[2]==0) or (L[1]==0 and L[2]>0):    
            p += 10
        elif L[1]>0 and L[2]>0:
            p += 20
        #-----------------------------------------
        if L[0]==0:
            pass
        elif L[0]==1:
            p += 10
        elif L[0]>1:
            p += 20
        #-----------------------------------------
        if L[3]==0:
            pass
        elif L[3]==1:
            p += 10
        elif L[3]>1:
            p += 25
        #-----------------------------------------
        if L[0]>0 and L[1]>0 and L[2]>0 and L[3]>0:
            p += 5   
        elif L[0]>0 and (L[1]>0 or L[2]>0) and L[3]>0:
            p += 3            
        elif L[0]>0 and (L[1]>0 or L[2]>0):
            p += 2            

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

        pass
    except:
        break