def func(str1):
    z,s,f = '','',''
    for i in str1:
        if i.isalpha():
            z += i
        elif i.isdigit():
            s += i
        else:
            f += i
    score = 0
    # 1密码长度
    if len(str1)<=4:
        score+=5
    elif 4<len(str1)<=7:
        score+=10
    else:
        score+=25
    # 2字母
    if len(z):
        if z.upper()==z&nbs***bsp;z.lower()==z:
            score+=10
        else:
            score+=20
    # 3数字
    if len(s):
        if len(s)==1:
            score+=10
        else:
            score+=20
    # 4符号
    if len(f):
        if len(f)==1:
            score+=10
        else:
            score+=25
    # 5奖励
    if len(z) and len(s):
        score+=2
        if len(f):
            score+=1
            if len(z)>1 and z.upper()!=z and z.lower()!=z:
                score+=2
    li = ['VERY_SECURE','SECURE','VERY_STRONG','STRONG','AVERAGE','WEAK','VERY_WEAK']
    num = [90,80,70,60,50,25,0]
    for l,n in zip(li,num):
        if score >=n:
            print(l)
            break
while 1:
    try:
        func(input())
    except:
        break