const rl = require("readline").createInterface({ input: process.stdin });

var iter = rl[Symbol.asyncIterator]();

const readline = async () => (await iter.next()).value;

void async function () {

    // Write your code here

    while(line = await readline()){

        let score=0

        let count2=0

        let count3=0

        let count5=0

        //长度

        if(line.length<=4){

            score+=5

        }else if(line.length>=8){

            score+=25

        }else{

            score+=10

        }

        //字母

        if(line.match(/[a-z]/g)&&line.match(/[A-Z]/g)){

            score+=20

            count5+=2

        }else if(line.match(/[a-z]/g)||line.match(/[A-Z]/g)){

            score+=10

            count2++

            count3++

        }

        //数字

        if(line.match(/[0-9]/g)){

            count2++

            count3++

            count5++

            if(line.match(/[0-9]/g).length>1){

                score+=20

            }else{

                score+=10

            }

        }

        //符号

        if(line.match(/[^a-zA-Z0-9]/g)){

            count3++

            count5++

            if(line.match(/[^a-zA-Z0-9]/g).length>1){

                score+=25

            }else{

                score+=10

            }

        }

        //奖励

        if(count2||count3||count5){

            if(count5>count3&&count5===4){

                score+=5

            }else if(count3>count2&&count3===3){

                score+=3

            }else if(count2===2){

                score+=2

            }

        }

        //评分标准

        if(score>=90){

            console.log('VERY_SECURE')

        }else if(score>=80&&score<90){

            console.log('SECURE')

        }else if(score>=70&&score<80){

            console.log('VERY_STRONG')

        }else if(score>=60&&score<70){

            console.log('STRONG')

        }else if(score>=50&&score<60){

            console.log('AVERAGE')

        }else if(score>=25&&score<50){

            console.log('WEAK')

        }else{

             console.log('VERY_WEAK')

        }

    }

}()