import java.util.*;
// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {
public static int getLen(String s) {
int len = s.length();
if(len <= 4) {
return 5;
} else if (len >= 5 && len <= 7) {
return 10;
} else {
return 25;
}
}
public static int getLetter(String s) {
boolean isLowerCase = false;
boolean isUpperCase = false;
for(int i = 0; i < s.length() ; i++) {
char ch = s.charAt(i);
if((ch >= 'a' && ch <= 'z') ) {
isLowerCase = true;
} else if ((ch >= 'A' && ch <= 'Z')) {
isUpperCase = true;
}
}
if(isLowerCase && isUpperCase) {
return 20;
} else if (isLowerCase || isUpperCase) {
return 10;
} else {
return 0;
}
}
public static int getSum(String s) {
int count = 0;
for(int i = 0; i < s.length(); i++) {
char ch = s.charAt(i);
if(ch >= '0' && ch <= '9') {
count++;
}
}
if(count > 1) {
return 20;
} else if (count == 1) {
return 10;
} else {
return 0;
}
}
public static int getSymbol(String s) {
int count = 0;
for(int i = 0; i < s.length(); i++) {
char ch = s.charAt(i);
if(!(ch >= 'a' && ch <= 'z') &&
!(ch >= 'A' && ch <= 'Z') &&
! (ch >= '0' && ch <= '9')) {
count++;
}
}
if(count > 1) {
return 25;
} else if (count == 1) {
return 10;
} else {
return 0;
}
}
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
while (in.hasNextLine()) {
String s = in.nextLine();
int sum = 0;
int sum1 = getLen(s);
int sum2 = getLetter(s);
int sum3 = getSum(s);
int sum4 = getSymbol(s);
if(sum2 != 0 && sum3 != 0 && sum4 == 0) {
sum = sum1 + sum2 + sum3 + sum4 + 2;
} else if (sum2 != 20 && sum3 != 0 && sum4 != 0) {
sum = sum1 + sum2 + sum3 + sum4 + 3;
} else if (sum2 == 20 && sum3 != 0 && sum4 != 0) {
sum = sum1 + sum2 + sum3 + sum4 + 5;
} else {
sum = sum1 + sum2 + sum3 + sum4;
}
if(sum >= 90) {
System.out.println("VERY_SECURE");
} else if (sum >= 80 && sum < 90) {
System.out.println("SECURE");
} else if (sum >= 70 && sum < 80) {
System.out.println("VERY_STRONG");
} else if (sum >= 60 && sum < 70) {
System.out.println("STRONG");
} else if (sum >= 50 && sum < 60) {
System.out.println("AVERAGE");
} else if (sum >= 25 && sum < 50) {
System.out.println("WEAK");
} else if (sum >= 0 && sum < 25) {
System.out.println("VERY_WEAK");
}
}
}
}