import java.util.Locale;
import java.util.Scanner;
/**
* @author zq
*/
public class Main{
//统计密码安全等级
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String str = scanner.nextLine();
int sum = len(str)+zimu(str)+digit(str)+m(str)+fuh(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 len(String str){
if (str.length()<=4){
return 5;
}else if (5<=str.length()&&str.length()<=7){
return 10;
}else {
return 25;
}
}
//字母
public static int zimu(String str){
String s = "";//小写
String s2 = "";//大写
for (int i = 0; i < str.length(); i++) {
if ('a'<=str.charAt(i)&&str.charAt(i)<='z'){
s+=str.charAt(i)+"";
}else if ('A'<=str.charAt(i)&&str.charAt(i)<='Z'){
s2+=str.charAt(i);
}
}
if (s.length()>0&&s2.length()>0){
return 20;
}else if (s.length()==0&&s2.length()==0){
return 0;
}
return 10;
}
//数字
public static int digit(String str){
String s = "";
for (int i = 0; i < str.length(); i++) {
if (Character.isDigit(str.charAt(i))){
s+=str.charAt(i);
}
}
if (s.length()==0){
return 0;
}else if (s.length()==1){
return 10;
}
return 20;
}
//符号
public static int fuh(String str){
String s = "";
for (int i = 0; i < str.length(); i++) {
if (!Character.isDigit(str.charAt(i)) && !Character.isLetter(str.charAt(i))){
s+=str.charAt(i)+"";
}
}
if (s.length()==0){
return 0;
}else if (s.length()==1){
return 10;
}
return 25;
}
//奖励
public static int m(String str){
int zimu = zimu(str);
int shu = digit(str);
int f = fuh(str);
if (zimu==20&&shu>0&&f>0){
return 5;
}else if (zimu==10&&shu>0&&f>0){
return 3;
}else if (zimu>0&&shu>0){
return 2;
}
return 0;
}
}