#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include <ctype.h>
#define LEN 300

int main() {
    char password[LEN];
    while (scanf("%s", password) != EOF) {
        int score = 0;
        int passlen = 0;
        bool haveupper = false;
        bool havelower = false;
        int numcount = 0;
        int punctcount = 0;
        for(int i = 0; password[i] != '\0'; i++) {
            passlen++;
            if(isupper(password[i])) haveupper = true;
            else if(islower(password[i])) havelower = true;
            else if(isdigit(password[i])) numcount++;
            else if((password[i] >= 0x21 && password[i] <= 0x2F) || (password[i] >= 0x3A && password[i] <= 0x40) || (password[i] >= 0x5B && password[i] <= 0x60) || (password[i] >= 0x7B && password[i] <= 0x7E)) punctcount++;
        }
        if(passlen <= 4) score += 5;
        else if(passlen <= 7) score += 10;
        else score += 25;
        if(haveupper && havelower) score += 20;
        else if(havelower || haveupper) score += 10;
        if(numcount == 1) score += 10;
        else if(numcount > 1) score += 20;
        if(punctcount == 1) score += 10;
        else if(punctcount > 1) score += 25;
        if(numcount > 0) {
            if(haveupper && havelower && punctcount > 0) score += 5;
            else if((punctcount > 0) && (havelower || haveupper)) score += 3;
            else if(havelower || haveupper) score += 2;
        }

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