import java.util.Scanner;

// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String password = in.nextLine();
        int pLength = password.length();
        int score = 0;

        // 密码长度
        if (pLength <= 4) {
            score += 5;
        } else if (pLength <= 7) {
            score += 10;
        } else {
            score += 25;
        }

        // 字母
        int letterCount = 0;
        int lowerCount = 0;
        int upperCount = 0;
        for (int i = 0; i < pLength; i++) {
            if (password.charAt(i) >= 'A' && password.charAt(i) <= 'Z') {
                upperCount++;
                letterCount++;
            } else if (password.charAt(i) >= 'a' && password.charAt(i) <= 'z') {
                lowerCount++;
                letterCount++;
            }
        }
        if (letterCount != 0) {
            if ((lowerCount > 0 && upperCount == 0) || (lowerCount == 0 &&
                    upperCount > 0)) {
                score += 10;
            } else {
                score += 20;
            }
        }

        // 数字
        int numCount = 0;
        for (int i = 0; i < pLength; i++) {
            if (password.charAt(i) >= '0' && password.charAt(i) <= '9') {
                numCount++;
            }
        }
        switch (numCount) {
            case 0:
                break;
            case 1:
                score += 10;
                break;
            default:
                score += 20;
                break;
        }

        // 符号
        int signCount = 0;
        for (int i = 0; i < pLength; i++) {
            if ((password.charAt(i) >= '!' && password.charAt(i) <= '/') ||
                    (password.charAt(i) >= ':' && password.charAt(i) <= '@') ||
                    (password.charAt(i) >= '[' && password.charAt(i) <= '`') ||
                    (password.charAt(i) >= '{' && password.charAt(i) <= '~')) {
                signCount++;
            }
        }
        switch (signCount) {
            case 0:
                break;
            case 1:
                score += 10;
                break;
            default:
                score += 25;
                break;
        }

        // 奖励
        if (upperCount > 0 && lowerCount > 0 && numCount > 0 && signCount > 0) {
            score += 5;
        } else if (letterCount > 0 && numCount > 0 && signCount > 0) {
            score += 3;
        } else if (letterCount > 0 && numCount > 0) {
            score += 2;
        }

        // 评分
        if (score >= 90) {
            System.out.println("VERY_SECURE");
        } else if (score >= 80) {
            System.out.println("SECURE");
        } else if (score >= 70) {
            System.out.println("VERY_STRONG");
        } else if (score >= 60) {
            System.out.println("STRONG");
        } else if (score >= 50) {
            System.out.println("AVERAGE");
        } else if (score >= 25) {
            System.out.println("WEAK");
        } else if (score >= 0) {
            System.out.println("VERY_WEAK");
        } else {
            System.out.println("ERROR");
        }
    }
}