#include<stdio.h> #include<string.h> int main() { char in[20][200]={0}; int i; for(i=0;gets(in[i]);i++) { int len,j; int n1,n2,n3,n4,n5,num; int n2_1=0,n2_2=0,n3_1=0,n4_1=0; len=strlen(in[i]); if(len<=4) { n1=5; } else if(len<=7) { n1=10; } else { n1=25; } for(j=0;j<len;j++) { if((in[i][j]<=47)||(in[i][j]>=58&&in[i][j]<=64)|| (in[i][j]>=91&&in[i][j]<=96)||(in[i][j]>=123&&in[i][j]<=126)) { n4_1++; } else if(in[i][j]>=65&&in[i][j]<=90) { n2_1++; } else if(in[i][j]>=97&&in[i][j]<=122) { n2_2++; } else if(in[i][j]>=48&&in[i][j]<=57) { n3_1++; } } if(n2_1==0&&n2_2==0) { n2=0; } else if(n2_1!=0&&n2_2!=0) { n2=20; } else { n2=10; } if(n3_1==0) { n3=0; } else if(n3_1==1) { n3=10; } else { n3=20; } if(n4_1==0) { n4=0; } else if(n4_1==1) { n4=10; } else { n4=25; } if(n2==10&&n3_1!=0&&n4_1==0) { n5=2; } else if(n2==10&&n3_1!=0&&n4_1!=0) { n5=3; } else if(n2==20&&n3_1!=0&&n4_1!=0) { n5=5; } else { n5=0; } num=n1+n2+n3+n4+n5; if(num>=90) { printf("VERY_SECURE\n"); } else if(num>=80) { printf("SECURE\n"); } else if(num>=70) { printf("VERY_STRONG\n"); } else if(num>=60) { printf("STRONG\n"); } else if(num>=50) { printf("AVERAGE\n"); } else if(num>=25) { printf("WEAK\n"); } else if(num>=0) { printf("VERY_WEAK\n"); } } return 0; }