import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner in = new Scanner(System.in); while(in.hasNext()){ int score = 0; String password = in.nextLine(); int len = password.length(); if(len <= 4) {score += 5;} else if(len <= 7){ score += 10; }else { score += 25; } int uper = 0; int lower = 0; int num = 0; int nch = 0; for(int i = 0;i < len;i ++){ if(password.charAt(i) <= '9' && password.charAt(i) >= '0') { num ++; }else if(password.charAt(i) <= 'Z' && password.charAt(i) >= 'A'){ uper = 1; }else if(password.charAt(i) <= 'z' && password.charAt(i) >= 'a'){ lower =1; } else{ nch ++; }

        }
        if(num >=2){
            score += 20;
        }else if(num > 0){
            score += 10;
        }
        if(uper+lower == 2){
            score +=20;
        }else if(uper+lower == 1){
            score += 10;
        }
        if(nch >=2){
            score += 25;
        }else if(nch == 1){
            score += 10;
        }
        if(num > 0 && nch > 0 && uper+lower == 0){
            score += 2;
        }
        if(num > 0 && nch >0 && uper+ lower == 1){
            score += 3;
        }
        if(num > 0 && nch >0 && uper+ lower == 2){
            score += 5;
        }
        grade(score);
    }
}
public static void grade(int score){
    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 {
        System.out.println("VERY_WEAK");
    }
    
}

}