import java.util.*;
import java.io.*;

public class Main
{
	public static void main(String [] Args)
	{
		Scanner in=new Scanner(System.in);		
		String s=in.next();
		int flag=0;
		for(int i=1;i<4;i++)
		{
			if(s.charAt(i)==s.charAt(i-1))
			{
				flag=1;
			}
		}
		if(flag==0)
			System.out.println("Good");
		else
			System.out.println("Bad");
	}
}
	 import java.util.*; util.* java import java.io.*; io.* java public class Main
{
	public static void main(String [] Args)
	{
		Scanner in=new Scanner(System.in);		
		String s=in.next();
		int flag=0;
		for(int i=1;i<4;i++)
		{
			if(s.charAt(i)==s.charAt(i-1))
			{
				flag=1;
			}
		}
		if(flag==0)
			System.out.println("Good");
		else
			System.out.println("Bad");
	}
} Main public static void main(String [] Args)
	{
		Scanner in=new Scanner(System.in);		
		String s=in.next();
		int flag=0;
		for(int i=1;i<4;i++)
		{
			if(s.charAt(i)==s.charAt(i-1))
			{
				flag=1;
			}
		}
		if(flag==0)
			System.out.println("Good");
		else
			System.out.println("Bad");
	} main {
		Scanner in=new Scanner(System.in);		
		String s=in.next();
		int flag=0;
		for(int i=1;i<4;i++)
		{
			if(s.charAt(i)==s.charAt(i-1))
			{
				flag=1;
			}
		}
		if(flag==0)
			System.out.println("Good");
		else
			System.out.println("Bad");
	} Scanner in=new Scanner(System.in); in new Scanner(System.in) String s=in.next(); s in.next() in.next in int flag=0; flag 0 for(int i=1;i<4;i++)
		{
			if(s.charAt(i)==s.charAt(i-1))
			{
				flag=1;
			}
		} int i=1; int i=1; i 1 i<4 i 4 i++ i++ i {
			if(s.charAt(i)==s.charAt(i-1))
			{
				flag=1;
			}
		} {
			if(s.charAt(i)==s.charAt(i-1))
			{
				flag=1;
			}
		} if(s.charAt(i)==s.charAt(i-1))
			{
				flag=1;
			} s.charAt(i)==s.charAt(i-1) s.charAt(i) s.charAt s i s.charAt(i-1) s.charAt s i-1 i 1 {
				flag=1;
			} flag=1 flag 1 if(flag==0)
			System.out.println("Good");
		else
			System.out.println("Bad"); flag==0 flag 0 System.out.println("Good") System.out.println System.out System System.out "Good" System.out.println("Bad") System.out.println System.out System System.out "Bad" String [] Args Args public class Main
{
	public static void main(String [] Args)
	{
		Scanner in=new Scanner(System.in);		
		String s=in.next();
		int flag=0;
		for(int i=1;i<4;i++)
		{
			if(s.charAt(i)==s.charAt(i-1))
			{
				flag=1;
			}
		}
		if(flag==0)
			System.out.println("Good");
		else
			System.out.println("Bad");
	}
} public class Main
{
	public static void main(String [] Args)
	{
		Scanner in=new Scanner(System.in);		
		String s=in.next();
		int flag=0;
		for(int i=1;i<4;i++)
		{
			if(s.charAt(i)==s.charAt(i-1))
			{
				flag=1;
			}
		}
		if(flag==0)
			System.out.println("Good");
		else
			System.out.println("Bad");
	}
} Main
import java.util.*;
import java.io.*;

public class Main
{
	public static void main(String [] Args)
	{
		Scanner in=new Scanner(System.in);		
		String s=in.next();
		int flag=0;
		for(int i=1;i<4;i++)
		{
			if(s.charAt(i)==s.charAt(i-1))
			{
				flag=1;
			}
		}
		if(flag==0)
			System.out.println("Good");
		else
			System.out.println("Bad");
	}
}
	