import java.util.*;

class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int flag = 0;
		for(int i = 0; i < s.length()-1; i++){
			if(s.substring(i,i+1).equals(s.substring(i+1,i+2))){
				flag = 1;
			}
		}
		System.out.print(flag == 1?"Bad":"Good");
	}
} import java.util.*; util.* java class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int flag = 0;
		for(int i = 0; i < s.length()-1; i++){
			if(s.substring(i,i+1).equals(s.substring(i+1,i+2))){
				flag = 1;
			}
		}
		System.out.print(flag == 1?"Bad":"Good");
	}
} Main public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int flag = 0;
		for(int i = 0; i < s.length()-1; i++){
			if(s.substring(i,i+1).equals(s.substring(i+1,i+2))){
				flag = 1;
			}
		}
		System.out.print(flag == 1?"Bad":"Good");
	} main {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int flag = 0;
		for(int i = 0; i < s.length()-1; i++){
			if(s.substring(i,i+1).equals(s.substring(i+1,i+2))){
				flag = 1;
			}
		}
		System.out.print(flag == 1?"Bad":"Good");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc int flag = 0; flag 0 for(int i = 0; i < s.length()-1; i++){
			if(s.substring(i,i+1).equals(s.substring(i+1,i+2))){
				flag = 1;
			}
		} int i = 0; int i = 0; i 0 i < s.length()-1 i s.length()-1 s.length() s.length s 1 i++ i++ i {
			if(s.substring(i,i+1).equals(s.substring(i+1,i+2))){
				flag = 1;
			}
		} {
			if(s.substring(i,i+1).equals(s.substring(i+1,i+2))){
				flag = 1;
			}
		} if(s.substring(i,i+1).equals(s.substring(i+1,i+2))){
				flag = 1;
			} s.substring(i,i+1).equals(s.substring(i+1,i+2)) s.substring(i,i+1).equals s.substring(i,i+1) s.substring s i i+1 i 1 s.substring(i+1,i+2) s.substring s i+1 i 1 i+2 i 2 {
				flag = 1;
			} flag = 1 flag 1 System.out.print(flag == 1?"Bad":"Good") System.out.print System.out System System.out flag == 1?"Bad":"Good" flag == 1 flag 1 "Bad" "Good" String args[] args
import java.util.*;

class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int flag = 0;
		for(int i = 0; i < s.length()-1; i++){
			if(s.substring(i,i+1).equals(s.substring(i+1,i+2))){
				flag = 1;
			}
		}
		System.out.print(flag == 1?"Bad":"Good");
	}
}
