
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scn=new Scanner(System.in);
		String str=scn.next();
		int flag=0;
		for(int i=1;i<str.length();i++) {
				if(str.charAt(i)==str.charAt(i-1)) {
					flag=1;
					System.out.println("Bad");
					break;
				}
		}
		if(flag==0) {
			System.out.println("Good");
		}
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scn=new Scanner(System.in);
		String str=scn.next();
		int flag=0;
		for(int i=1;i<str.length();i++) {
				if(str.charAt(i)==str.charAt(i-1)) {
					flag=1;
					System.out.println("Bad");
					break;
				}
		}
		if(flag==0) {
			System.out.println("Good");
		}
	}

} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scn=new Scanner(System.in);
		String str=scn.next();
		int flag=0;
		for(int i=1;i<str.length();i++) {
				if(str.charAt(i)==str.charAt(i-1)) {
					flag=1;
					System.out.println("Bad");
					break;
				}
		}
		if(flag==0) {
			System.out.println("Good");
		}
	} main {
		// TODO Auto-generated method stub
		Scanner scn=new Scanner(System.in);
		String str=scn.next();
		int flag=0;
		for(int i=1;i<str.length();i++) {
				if(str.charAt(i)==str.charAt(i-1)) {
					flag=1;
					System.out.println("Bad");
					break;
				}
		}
		if(flag==0) {
			System.out.println("Good");
		}
	} Scanner scn=new Scanner(System.in); scn new Scanner(System.in) String str=scn.next(); str scn.next() scn.next scn int flag=0; flag 0 for(int i=1;i<str.length();i++) {
				if(str.charAt(i)==str.charAt(i-1)) {
					flag=1;
					System.out.println("Bad");
					break;
				}
		} int i=1; int i=1; i 1 i<str.length() i str.length() str.length str i++ i++ i {
				if(str.charAt(i)==str.charAt(i-1)) {
					flag=1;
					System.out.println("Bad");
					break;
				}
		} {
				if(str.charAt(i)==str.charAt(i-1)) {
					flag=1;
					System.out.println("Bad");
					break;
				}
		} if(str.charAt(i)==str.charAt(i-1)) {
					flag=1;
					System.out.println("Bad");
					break;
				} str.charAt(i)==str.charAt(i-1) str.charAt(i) str.charAt str i str.charAt(i-1) str.charAt str i-1 i 1 {
					flag=1;
					System.out.println("Bad");
					break;
				} flag=1 flag 1 System.out.println("Bad") System.out.println System.out System System.out "Bad" break; if(flag==0) {
			System.out.println("Good");
		} flag==0 flag 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) {
		// TODO Auto-generated method stub
		Scanner scn=new Scanner(System.in);
		String str=scn.next();
		int flag=0;
		for(int i=1;i<str.length();i++) {
				if(str.charAt(i)==str.charAt(i-1)) {
					flag=1;
					System.out.println("Bad");
					break;
				}
		}
		if(flag==0) {
			System.out.println("Good");
		}
	}

} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scn=new Scanner(System.in);
		String str=scn.next();
		int flag=0;
		for(int i=1;i<str.length();i++) {
				if(str.charAt(i)==str.charAt(i-1)) {
					flag=1;
					System.out.println("Bad");
					break;
				}
		}
		if(flag==0) {
			System.out.println("Good");
		}
	}

} Main

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scn=new Scanner(System.in);
		String str=scn.next();
		int flag=0;
		for(int i=1;i<str.length();i++) {
				if(str.charAt(i)==str.charAt(i-1)) {
					flag=1;
					System.out.println("Bad");
					break;
				}
		}
		if(flag==0) {
			System.out.println("Good");
		}
	}

}
