import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String s = in.nextLine();
        int low = 0;
        int upper = 0;
        int symbol = 0;
        int num = 0;
        int score = 0;
        for(int i =0; i<s.length(); i++){
            char c = s.charAt(i);
            if(c>='a' && c<='z'){
                low++;
            }else if(c>='A' && c<='Z'){
                upper++;
            }else if(c>='0' && c<='9'){
                num++;
            }else if(c>=0x21 && c<=0x2F){
                symbol++;
            }else if(c>=0x3A && c<=0x40){
                symbol++;
            }else if(c>=0x5B && c<=0x60){
                symbol++;
            }else if(c>=0x7B && c<=0x7E){
                symbol++;
            }
        }
        
        if(s.length()<=4){
            score = 5;
        }else if(s.length()>=5 && s.length()<=7){
            score = 10;
        }else{
            score = 25;
        }
        
        if(((low == 0) ||(upper == 0)) && ((low+upper) != 0)){
            score += 10;
        }else if(low != 0 && upper != 0){
            score += 20;
        }
        
        if(num == 1){
            score += 10;
        }else if(num>1){
            score += 20;
        }
        
        if(symbol == 1){
            score += 10;
        }else if(symbol>1){
            score +=25;
        }
        
        if(low != 0 && upper != 0 && num != 0 && symbol != 0){
            score += 5;
        }else if((low != 0 || upper != 0) && num != 0 && symbol != 0){
            score += 3;
        }else if((low != 0 || upper != 0) && num != 0 ){
            score += 2;
        }
        if(score >= 90){
            System.out.println("VERY_SECURE");
        }else if(score >= 80){
            System.out.println("SECURE");
        }else if(score >= 70){
            System.out.println("VERY_STRONG");
        }else if(score >= 60){
            System.out.println("STRONG");
        }else if(score >= 50){
            System.out.println("AVERAGE");
        }else if(score >= 25){
            System.out.println("WEAK");
        }else if(score >= 0){
            System.out.println("VERY_WEAK");
        }
        
    }
}