#include<bits/stdc++.h>
using namespace std;
const int maxn=1e5+10;
const int mod=1e6+3;
typedef long long ll;
map<int,int>mp,mmp;
#define inf 0x3f3f3f3f
#define mem(a,b) memset(a,b,sizeof(a))
#define pi acos(-1.0)
void read(int &x)
{
	int f=1;x=0;
	char ch=getchar();
	while(ch<'0'||ch>'9')
	{
		if(ch=='-')f=-1;
		ch=getchar();
	}
	while(ch>='0'&&ch<='9')x=x*10+ch-'0',ch=getchar();
	x*=f;
}
char s[5];
int main()
{
   scanf("%s",s);
   for(int i=1;s[i];i++)
   {
   	if(s[i]==s[i-1])
   	{
   		return 0*puts("Bad");
   	}
   }
   puts("Good");
}