num=input()

# 长度
length=len(num)
# print(length)

# 小写字母,大写字母和,数字,符合
count1,count2,count3,count4=0,0,0,0
for i in num:
    if i>='a' and i<='z':
        count1=count1+1
    elif i>='A' and i<='Z':
        count2=count2+1
    elif i>='0' and i<='9':
        count3=count3+1
    else:
        count4=count4+1
# print(count1,count2,count3,count4)

count=0
# 长度加分
if length<=4:
    count=count+5
elif length>=5 and length<=7:
    count=count+10
elif length>=8:
    count=count+25
# 字母加分
if count1==0 or count2==0:
    count=count+10
elif count1>0 and count2>0:
    count=count+20
# 数字加分
if count3==1:
    count=count+10
elif count3>1:
    count=count+20
# 符号加分
if count4==1:
    count=count+10
elif count4>1:
    count=count+25
# 奖励
if count1>0 and count2>0 and count3>0 and count4>0:
    count=count+5
elif (count1>0 and count2==0 and count3>0 and count4>0) or (count1==0 and count2>0 and count3>0 and count4>0):
    count=count+3
elif (count1>0 and count2==0 and count3>0 and count4==0) or (count1==0 and count2>0 and count3>0 and count4==0):
    count=count+2

# 评分标准
# print(count)
if count>=90:
    print('VERY_SECURE')
elif count>=80 and count<90:
    print("SECURE")
elif count>=70 and count<80:
    print("VERY_STRONG")
elif count>=60 and count<70:
    print("STRONG")
elif count>=50 and count<60:
    print("AVERAGE")
elif count>=25 and count<50:
    print("WEAK")
else:
    print("VERY_WEAK")