import re

def pw_symbol(s):
    count_symbol = sum(1 for char in s if re.search('\\W', char))
    if count_symbol == 0:
        symbol_score = 0
    elif count_symbol == 1:
        symbol_score = 10
    else:
        symbol_score = 25
    return symbol_score


def pw_letter(s):
    patter_az = r'[a-z]'
    patter_AZ = r'[A-Z]'
    if re.search(patter_az, s) and re.search(patter_AZ, s):
        letter_score = 20
    elif re.search(patter_az, s) or re.search(patter_AZ, s):
        letter_score = 10
    else:
        letter_score = 0
    return letter_score


def pw_number(s):
    count_num = sum(1 for char in s if char.isdigit())
    if count_num == 0:
        number_score = 0
    elif count_num == 1:
        number_score = 10
    else:
        number_score = 20
    return number_score


def pw_award(s):
    if pw_number(s) and pw_symbol(s) and pw_letter(s) == 20:
        award_score = 5
    elif pw_number(s) and pw_symbol(s) and pw_letter(s):
        award_score = 3
    elif pw_number(s) and pw_letter(s):
        award_score = 2
    else:
        award_score = 0
    return award_score


def pw_length(s):
    if len(s) <= 4:
        length_score = 5
    elif 5 <= len(s) <= 7:
        length_score = 10
    else:
        length_score = 25
    return length_score


def pw_score_sum(s):
    pw_score = pw_length(s) + pw_letter(s) + pw_number(s) + pw_symbol(s) + pw_award(s)
    if pw_score >= 90:
        print('VERY_SECURE')
    elif 80 <= pw_score < 90:
        print('SECURE')
    elif 70 <= pw_score < 80:
        print('VERY_STRONG')
    elif 60 <= pw_score < 70:
        print('STRONG')

    elif 50 <= pw_score < 60:
        print('AVERAGE')
    elif 25 <= pw_score < 50:
        print('WEAK')
    else:
        print('VERY_WEAK')

if __name__ == '__main__':
    pw_str = str(input()).split()[0]
    pw_score_sum(pw_str)