#include<stdio.h>
#include<string.h>
int main(){
char data[300];
while(scanf("%s",&data)!=EOF){
int count=0;
int len;
int str=0;
int zimu1=0;
int zimu2=0;
int shuzi=0;
int i;
len=strlen(data);
if(len<=4)
count+=5;
if(len>4&&len<=7)
count+=10;
if(len>=8)
count+=25;
for(i=0;i<len;i++){
if(data[i]>='A'&&data[i]<='Z'){
zimu2++;
continue;
}
if(data[i]>='a'&&data[i]<='z'){
zimu1++;
continue;
}
if(data[i]<='9'&&data[i]>='0'){
shuzi++;
continue;
}
if(data[i]<=0x2F&&data[i]>=0x21){
str++;
continue;
}
if(data[i]<=0x40&&data[i]>=0x3A){
str++;
continue;
}
if(data[i]<=0x60&&data[i]>=0x5B){
str++;
continue;
}
if(data[i]<=0x7E&&data[i]>=0x7B){
str++;
continue;
}
}
//printf("%d %d %d %d %d\n",len,zimu1,zimu2,shuzi,str);
if(zimu1>0&&zimu2==0||zimu1==0&&zimu2>0)
count+=10;
if(zimu1>0&&zimu2>0)
count+=20;
if(shuzi==1)
count+=10;
if(shuzi>1)
count+=20;
if(str==1)
count+=10;
if(str>1)
count+=25;
//printf("%d\n",count);
if(shuzi>0&&zimu1+zimu2>0&&str==0)
count+=2;
if(shuzi>0&&zimu1+zimu2>0&&str>=0)
count+=3;
if(shuzi>0&&zimu1>0&&zimu2>0&&str>0)
count+=5;
if(count>=90){
printf("VERY_SECURE\n");
}
if(count<90&&80<=count){
printf("SECURE\n");
}
if(count<80&&count>=70){
printf("VERY_STRONG\n");
}
if(count<70&&count>=60){
printf("STRONG\n");
}
if(count<60&&count>=50){
printf("AVERAGE\n");
}
if(count<50&&count>=25){
printf("WEAK\n");
}
if(count<25&&count>=0)
printf("VERY_WEAK\n");
}
return 0;
}