#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
string str;
getline(cin,str);
int len = str.length();
int num=0;
vector<char>a1,a2,b,c;
int a11,a21,b1,c1;
if(0 <= len && len<= 4){
num += 5;
}else if(5 <= len && len <= 7){
num += 10;
}else{
num += 25;
}
for(int i=0 ; i<len ; i++){
char ch = str[i];
if(ch >= '1' && ch <='9'){//数字向量:b
b.push_back(ch);
}
if(ch >= 'A' && ch <='Z'){//大写字母向量:a1
a1.push_back(ch);
}
if(ch >= 'a' && ch <='z'){//小写字母向量:a2
a2.push_back(ch);
}
if(((int)ch >= 33 && (int)ch <= 47) || ((int)ch >= 58 && (int)ch <= 64) || ((int)ch >= 91 && (int)ch <= 96) || ((int)ch >= 123 && (int)ch <= 126)){//符号向量:c
c.push_back(ch);
}
}
a11 = a1.size();//大写字母数量
a21 = a2.size();//小写字母数量
b1 = b.size();//数字数量
c1 = c.size();//符号数量
if((a11 == 0 && a21 != 0) || (a11 != 0 && a21 == 0)){
num += 10;
}else if(a11 != 0 && a21 != 0){
num += 20;
}
if(b1 == 1){
num += 10;
}else if(b1 > 1){
num += 20;
}
if(c1 == 1){
num += 10;
}else if(c1 > 1){
num += 25;
}
if(a11 != 0 && a21 != 0 && b1 != 0 && c1 != 0){
num += 5;
}else if((a11 != 0 || a21 != 0) && b1 != 0 && c1 != 0){
num += 3;
}else if((a11 != 0 || a21 != 0) && b1 != 0 && c1 == 0){
num += 2;
}
if(num >= 90){
cout << "VERY_SECURE";
return 0;
}
if(num >= 80 && num < 90){
cout << "SECURE";
return 0;
}
if(num >= 70 && num < 80){
cout << "VERY_STRONG";
return 0;
}
if(num >= 60 && num < 70){
cout << "STRONG";
return 0;
}
if(num >= 50 && num < 60){
cout << "AVERAGE";
return 0;
}
if(num >= 25 && num < 50){
cout << "WEAK";
return 0;
}
if(num >= 0 && num < 25){
cout << "VERY_WEAK";
return 0;
}
}