let str;

const out = {
  90: "VERY_SECURE",
  80: "SECURE",
  70: "VERY_STRONG",
  60: "STRONG",
  50: "AVERAGE",
  25: "WEAK",
  0: "VERY_WEAK",
};

while ((str = readline())) {
  let upper = /[A-Z]+/.test(str),
    lower = /[a-z]+/.test(str),
    num = (str.match(/\d/g) || []).length,
    char = (str.match(/[^0-9a-zA-Z]/g) || []).length,
    total = 0;
//   print(upper, lower, num ,char, str.length)
  
  if (str.length <= 4) total += 5;
  else if (str.length <= 7) total += 10;
  else total += 25;

  if (upper && lower) total += 20;
  else if (upper || lower) total += 10;

  if(num == 1) total += 10;
  else if (num > 1) total += 20;
  
  if (char == 1) total += 10;
  else if (char > 1) total += 25;

  if (upper && lower && num && char) total += 5;
  else if ((upper || lower) && num && char) total += 3;
  else if ((upper || lower) && num) total += 2;

  Object.keys(out)
    .sort((a, b) => b - a)
    .some((score) => {
      if (total >= score) {
        print(out[score]);
        return true;
      }
    });
}