
import java.util.Scanner;

public class Main {
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		
		String str = sc.next();
	
		int a=0,b=0;
	while(a<str.length())
		{
			if(str.charAt(a++)==str.charAt(a))
			{
				++b;
				System.out.println("Bad");
				break;
		
			}
			if(a==str.length()-1)
				break;
		}
	if(b==0)
	{
		System.out.println("Good");
	}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		
		String str = sc.next();
	
		int a=0,b=0;
	while(a<str.length())
		{
			if(str.charAt(a++)==str.charAt(a))
			{
				++b;
				System.out.println("Bad");
				break;
		
			}
			if(a==str.length()-1)
				break;
		}
	if(b==0)
	{
		System.out.println("Good");
	}
	}
} Main public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		
		String str = sc.next();
	
		int a=0,b=0;
	while(a<str.length())
		{
			if(str.charAt(a++)==str.charAt(a))
			{
				++b;
				System.out.println("Bad");
				break;
		
			}
			if(a==str.length()-1)
				break;
		}
	if(b==0)
	{
		System.out.println("Good");
	}
	} main {
		Scanner sc = new Scanner(System.in);
		
		String str = sc.next();
	
		int a=0,b=0;
	while(a<str.length())
		{
			if(str.charAt(a++)==str.charAt(a))
			{
				++b;
				System.out.println("Bad");
				break;
		
			}
			if(a==str.length()-1)
				break;
		}
	if(b==0)
	{
		System.out.println("Good");
	}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = sc.next(); str sc.next() sc.next sc int a=0 a 0 b=0; b 0 while(a<str.length())
		{
			if(str.charAt(a++)==str.charAt(a))
			{
				++b;
				System.out.println("Bad");
				break;
		
			}
			if(a==str.length()-1)
				break;
		} a<str.length() a str.length() str.length str {
			if(str.charAt(a++)==str.charAt(a))
			{
				++b;
				System.out.println("Bad");
				break;
		
			}
			if(a==str.length()-1)
				break;
		} if(str.charAt(a++)==str.charAt(a))
			{
				++b;
				System.out.println("Bad");
				break;
		
			} str.charAt(a++)==str.charAt(a) str.charAt(a++) str.charAt str a++ a str.charAt(a) str.charAt str a {
				++b;
				System.out.println("Bad");
				break;
		
			} ++b b System.out.println("Bad") System.out.println System.out System System.out "Bad" break; if(a==str.length()-1)
				break; a==str.length()-1 a str.length()-1 str.length() str.length str 1 break; if(b==0)
	{
		System.out.println("Good");
	} b==0 b 0 {
		System.out.println("Good");
	} System.out.println("Good") System.out.println System.out System System.out "Good" String[] args args public class Main {
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		
		String str = sc.next();
	
		int a=0,b=0;
	while(a<str.length())
		{
			if(str.charAt(a++)==str.charAt(a))
			{
				++b;
				System.out.println("Bad");
				break;
		
			}
			if(a==str.length()-1)
				break;
		}
	if(b==0)
	{
		System.out.println("Good");
	}
	}
} public class Main {
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		
		String str = sc.next();
	
		int a=0,b=0;
	while(a<str.length())
		{
			if(str.charAt(a++)==str.charAt(a))
			{
				++b;
				System.out.println("Bad");
				break;
		
			}
			if(a==str.length()-1)
				break;
		}
	if(b==0)
	{
		System.out.println("Good");
	}
	}
} Main

import java.util.Scanner;

public class Main {
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		
		String str = sc.next();
	
		int a=0,b=0;
	while(a<str.length())
		{
			if(str.charAt(a++)==str.charAt(a))
			{
				++b;
				System.out.println("Bad");
				break;
		
			}
			if(a==str.length()-1)
				break;
		}
	if(b==0)
	{
		System.out.println("Good");
	}
	}
}
