import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        char[] chrs = scan.nextLine().toCharArray();
        int score = 0;
        if (chrs.length <= 4) {
            score += 5;
        } else if (chrs.length >= 5 && chrs.length <= 7) {
            score += 10;
        } else {
            score += 25;
        }
        int[] signs = new int[6];
        for (char chr : chrs) {
            if (chr >= 'a' && chr <= 'z') {
                signs[0] = 1;
            } else if (chr >= 'A' && chr <= 'Z') {
                signs[1] = 1;
            } else if (chr >= '0' && chr <= '9') {
                if (signs[2] == 1) {
                    signs[3] = 1;
                } else {
                    signs[2] = 1;
                }
            } else {
                if (signs[4] == 1) {
                    signs[5] = 1;
                } else {
                    signs[4] = 1;
                }
            }
        }
        int acc = 0;
        if (signs[0] == 1) {
            score += 10;
        }
        if (signs[1] == 1) {
            score += 10;
        }
        if (signs[2] == 1) {
            score += 10;
        }
        if (signs[3] == 1) {
            score += 10;
        }
        if (signs[4] == 1) {
            score += 10;
        }
        if (signs[5] == 1) {
            score += 15;
        }
        if (signs[0] == 1 && signs[1] == 1 && signs[2] == 1 && signs[4] == 1) {
            score += 5;
        } else if (signs[0] == 1 && signs[2] == 1 && signs[4] == 1) {
            score += 3;
        } else if (signs[0] == 1 && signs[2] == 1) {
            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 {
            System.out.println("VERY_WEAK");
        }
    }
}