import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String s = sc.next();        
        String t = "Good";
        for(int i=0;i<3;i++){if(s.charAt(i)==s.charAt(i+1)){t="Bad";break;
                                                 }
                            }        
		System.out.println(t);
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String s = sc.next();        
        String t = "Good";
        for(int i=0;i<3;i++){if(s.charAt(i)==s.charAt(i+1)){t="Bad";break;
                                                 }
                            }        
		System.out.println(t);
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String s = sc.next();        
        String t = "Good";
        for(int i=0;i<3;i++){if(s.charAt(i)==s.charAt(i+1)){t="Bad";break;
                                                 }
                            }        
		System.out.println(t);
	} main {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();        
        String t = "Good";
        for(int i=0;i<3;i++){if(s.charAt(i)==s.charAt(i+1)){t="Bad";break;
                                                 }
                            }        
		System.out.println(t);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc String t = "Good"; t "Good" for(int i=0;i<3;i++){if(s.charAt(i)==s.charAt(i+1)){t="Bad";break;
                                                 }
                            } int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {if(s.charAt(i)==s.charAt(i+1)){t="Bad";break;
                                                 }
                            } {if(s.charAt(i)==s.charAt(i+1)){t="Bad";break;
                                                 }
                            } if(s.charAt(i)==s.charAt(i+1)){t="Bad";break;
                                                 } 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 {t="Bad";break;
                                                 } t="Bad" t "Bad" break; System.out.println(t) System.out.println System.out System System.out t String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String s = sc.next();        
        String t = "Good";
        for(int i=0;i<3;i++){if(s.charAt(i)==s.charAt(i+1)){t="Bad";break;
                                                 }
                            }        
		System.out.println(t);
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String s = sc.next();        
        String t = "Good";
        for(int i=0;i<3;i++){if(s.charAt(i)==s.charAt(i+1)){t="Bad";break;
                                                 }
                            }        
		System.out.println(t);
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String s = sc.next();        
        String t = "Good";
        for(int i=0;i<3;i++){if(s.charAt(i)==s.charAt(i+1)){t="Bad";break;
                                                 }
                            }        
		System.out.println(t);
	}
}
