import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (sc.hasNext()) {
String password = sc.nextLine();
int score = 0;
// 密码长度
int length = password.length();
if (length < 5) {
score += 5;
} else if (length < 8) {
score += 10;
} else {
score += 25;
}
// 字母
boolean hasSmallLetter = false;
boolean hasBigLetter = false;
// 数字
int digitCount = 0;
// 去除非字母数字的字符
String replacePassWord = password.replaceAll("[^a-zA-Z0-9]", "");
// 特殊字符个数
int symbolCount = password.length() - replacePassWord.length();
for (char c : replacePassWord.toCharArray()) {
if (Character.isDigit(c)) {
digitCount++;
}
if (c >= 'a' && c <= 'z') {
hasSmallLetter = true;
}
if (c >= 'A' && c <= 'Z') {
hasBigLetter = true;
}
}
// 字母得分
boolean hasLetter = (hasSmallLetter && !hasBigLetter)
|| (!hasSmallLetter && hasBigLetter);
if (hasLetter) {
score += 10;
} else if (hasSmallLetter && hasBigLetter) {
score += 20;
}
// 数字得分
if (digitCount == 1) {
score += 10;
} else if (digitCount > 1) {
score += 20;
}
// 特殊字符得分
if (symbolCount == 1) {
score += 10;
} else if (symbolCount > 1) {
score += 25;
}
// 奖励得分
if (hasSmallLetter && hasBigLetter && digitCount > 0 && symbolCount > 0) {
score += 5;
} else if (hasLetter && digitCount > 0 && symbolCount > 0) {
score += 3;
} else if (hasLetter && digitCount > 0) {
score += 3;
}
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");
}
}
}
}