#include <stdbool.h>
#include <stdio.h>
#include <string.h>

int main() {
    int score = 0;
    int length = 0;
    bool upper,lower;
    int number,symbol;
    char s[301] = {};

    while (scanf("%s", s) != EOF) {
        score = 0;
        number=symbol=0;
        upper=lower=false;
        length = strlen(s);
        for (int i=0; i<length; ++i) {
            if (s[i]>='a' && s[i]<='z') lower=true;
            else if (s[i]>='A' && s[i]<='Z') upper=true;
            else if (s[i]>='0' && s[i]<='9') number++;
            else symbol++;
        }

        if (length <= 4) score += 5;
        else if (length>=5 && length<=7) score += 10;
        else score += 25;

        if (upper && lower) score += 20;
        else if (upper || lower)  score += 10;
        else score += 0;

        if (number > 1) score += 20;
        else if (number == 1) score += 10;
        else score += 0;

        if (symbol > 1) score += 25;
        else if (symbol == 1) score += 10;
        else score += 0;

        if ((upper&&lower)&&(number!=0)&&(symbol!=0)) score += 5;
        else if ((upper||lower)&&(number!=0)&&(symbol!=0)) score += 3;
        else if ((upper||lower)&&(number!=0)) score += 0;

        if (score >= 90) printf("VERY_SECURE");
        else if (score >= 80) printf("SECURE");
        else if (score >= 70) printf("VERY_STRONG");
        else if (score >= 60) printf("STRONG");
        else if (score >= 50) printf("AVERAGE");
        else if (score >= 25) printf("WEAK");
        else printf("VERY_WEAK");
        
    }
    return 0;
}