//写5个方法,分别用来判断密码长度,字母,数字,符号以及奖励,
import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
String str = scanner.nextLine();
//写5个方法,分别用来判断密码长度,字母,数字,符号以及奖励,
//并且返回值是其所对应的分值,sum求总和,最后判断输出
int sum = lenSco(str) + alpSco(str) + numSco(str) + charSco(str) + redSco(str);
if(sum >= 90){
System.out.println("VERY_SECURE");
}
else if(sum >= 80){
System.out.println("SECURE");
}
else if(sum >= 70){
System.out.println("VERY_STRONG");
}
else if(sum >= 60){
System.out.println("STRONG");
}else if(sum >= 50){
System.out.println("AVERAGE");
}else if(sum >= 25){
System.out.println("WEAK");
}else if(sum >= 0){
System.out.println("VERY_WEAK");
}
}
//判断长度并返回值
public static int lenSco(String str){
if(str.length() <= 4){
return 5;
}else if(str.length() <= 7){
return 10;
}else{
return 25;
}
}
//判断字母并返回分值
public static int alpSco(String str){
boolean count1 = false;
boolean count2 = false;
for(int i = 0; i < str.length(); ++i){ // 65 + 25 =
if(str.charAt(i) >= 'A' && str.charAt(i) <= 'Z' ){
count1 = true;
}
if(str.charAt(i) >= 'a' && str.charAt(i) <= 'z'){
count2 = true;
}
}
//判断返回分值
if(count1 && count2){
return 20;
}else if(count1 || count2){
return 10;
}else{
return 0;
}
}
//数字分值
public static int numSco(String str){
int count = 0;
for(int i = 0; i < str.length(); ++i){
if(str.charAt(i) >= '0' && str.charAt(i) <= '9'){
count++;
}
}
if(count > 1){
return 20;
}else if(count == 1){
return 10;
}else{
return 0;
}
}
//符号分值
public static int charSco(String str){
int count = 0;
for(int i = 0; i < str.length(); ++i){
if(str.charAt(i) >= 0x21 && str.charAt(i) <= 0x2F ||
str.charAt(i) >= 0x3A && str.charAt(i) <= 0x40 ||
str.charAt(i) >= 0x5B && str.charAt(i) <= 0x60 ||
str.charAt(i) >= 0x7B && str.charAt(i) <= 0x7E){
count++;
}
}
if(count > 1){
return 25;
}else if(count == 1){
return 10;
}else{
return 0;
}
}
//奖励
public static int redSco(String str){
int sum = alpSco(str) + numSco(str) + charSco(str);
if(alpSco(str) == 20 && numSco(str) > 0 && charSco(str) > 0){
return 5;
}else if(alpSco(str) > 0 && numSco(str) > 0 && charSco(str) > 0){
return 3;
}
else if(alpSco(str) > 0 && numSco(str) > 0){
return 2;
}else{
return 0;
}
}
}