/******************************************************************************
Online C Compiler.
Code, Compile, Run and Debug C program online.
Write your code in this editor and press "Run" button to compile and execute it.
*******************************************************************************/
#include <stdio.h>
int count(char s[100]){
int count=0;
for(int i=0; s[i]!='\0'; i++){
count++;
}
return count;
}
int main()
{
char s[100];
int good=0;
scanf("%s",s);
int n=count(s);
if(n<8)
printf("Weak");
else if(n>=8){
for(int i=0; i<n; i++){
if(s[i]>='0'&& s[i]<='9' )
{
good++;}
else if(s[i]>='0'&& s[i]<='9'&& s[i]>=32 && s[i]<=47 ||s[i]>=58 && s[i]<=64 ||s[i]>=91 && s[i]<=96 ||s[i]>=123 && s[i]<=126){
printf("Strong");
good=-1;
break;
}
}
if(good==0)
printf("Medium");
else if(good>1)
printf("Good");
}
return 0;
}