import sys
import re

for line in sys.stdin:
    pwd=line.strip()
    score=0

    # length
    if len(pwd)>=8:
        score+=25
    elif len(pwd)>=5:
        score+=10
    elif len(pwd)>0:
        score+=5

    flag=0
    # character
    if not re.findall('[a-zA-Z]', pwd):
        score+=0
    else:

        if pwd.upper()==pwd or pwd.lower()==pwd:
            score+=10
            flag+=10
        else:
            score+=20
            flag+=20
    # digit
    digits=re.findall('[0-9]', pwd)
    if not digits:
        score+=0
    else:
        flag+=100
    if len(digits)==1:
        score+=10
    if len(digits)>1:
        score+=20
    # symbol
    symbol_count=0
    for c in pwd:
        if int('0x21', 16) <= ord(c) <= int('0x2F', 16):
            symbol_count+=1
        elif int('0x3A', 16) <= ord(c) <= int('0x40', 16):
            symbol_count+=1
        elif int('0x5B', 16) <= ord(c) <= int('0x60', 16):
            symbol_count+=1
        elif int('0x7B', 16) <= ord(c) <= int('0x7E', 16):
            symbol_count+=1
    if symbol_count==0:
        score+=0
    else:
        flag+=1000
    if symbol_count==1:
        score+=10
    if symbol_count>1:
        score+=25

    if flag==110:
        score+=2
    elif flag==1110:
        score+=3
    elif flag==1120:
        score+=5

    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')
    elif score>=0:
        print('VERY_WEAK')