import java.util.Scanner;
/**
* HJ87 密码强度等级 - 简单
*/
public class HJ087 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (sc.hasNext()) {
String input = sc.nextLine();
int score = 0;
if (input.length() <= 4) {
score += 5;
} else if (input.length() < 8) {
score += 10;
} else {
score += 25;
}
if (input.matches(".*[A-Za-z]+.*")) {
if (input.matches(".*[A-Z].*")
&& input.matches(".*[a-z].*")) {
score += 20;
} else {
score += 10;
}
}
if (input.matches(".*[0-9]+.*")) {
if (input.matches(".*[0-9].*[0-9].*")) {
score += 20;
} else {
score += 10;
}
}
if (input.matches(".*[^A-Za-z0-9]+.*")) {
if (input.matches(".*[^A-Za-z0-9].*[^A-Za-z0-9].*")) {
score += 25;
} else {
score += 10;
}
}
if (input.matches(".*[0-9]+.*")) {
if (input.matches(".*[A-Z].*")
&& input.matches(".*[a-z].*")
&& input.matches(".*[^A-Za-z0-9]+.*")) {
score += 5;
} else if (input.matches(".*[A-Za-z]+.*")) {
if (input.matches(".*[^A-Za-z0-9]+.*")) {
score += 3;
} else {
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 {
System.out.println("VERY_WEAK");
}
}
sc.close();
}
}