import java.util.*;
public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	String s = sc.next();
      	boolean isGood = true;
      	if(s.charAt(0) == s.charAt(1)) isGood = false;
      	if(s.charAt(1) == s.charAt(2)) isGood = false;
      	if(s.charAt(2) == s.charAt(3)) isGood = false;
      	
      	if(isGood) System.out.println("Good");
      	else System.out.println("Bad");
    }
} import java.util.*; util.* java public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	String s = sc.next();
      	boolean isGood = true;
      	if(s.charAt(0) == s.charAt(1)) isGood = false;
      	if(s.charAt(1) == s.charAt(2)) isGood = false;
      	if(s.charAt(2) == s.charAt(3)) isGood = false;
      	
      	if(isGood) System.out.println("Good");
      	else System.out.println("Bad");
    }
} Main public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	String s = sc.next();
      	boolean isGood = true;
      	if(s.charAt(0) == s.charAt(1)) isGood = false;
      	if(s.charAt(1) == s.charAt(2)) isGood = false;
      	if(s.charAt(2) == s.charAt(3)) isGood = false;
      	
      	if(isGood) System.out.println("Good");
      	else System.out.println("Bad");
    } main {
    	Scanner sc = new Scanner(System.in);
      	String s = sc.next();
      	boolean isGood = true;
      	if(s.charAt(0) == s.charAt(1)) isGood = false;
      	if(s.charAt(1) == s.charAt(2)) isGood = false;
      	if(s.charAt(2) == s.charAt(3)) isGood = false;
      	
      	if(isGood) System.out.println("Good");
      	else System.out.println("Bad");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc boolean isGood = true; isGood true if(s.charAt(0) == s.charAt(1)) isGood = false; s.charAt(0) == s.charAt(1) s.charAt(0) s.charAt s 0 s.charAt(1) s.charAt s 1 isGood = false isGood false if(s.charAt(1) == s.charAt(2)) isGood = false; s.charAt(1) == s.charAt(2) s.charAt(1) s.charAt s 1 s.charAt(2) s.charAt s 2 isGood = false isGood false if(s.charAt(2) == s.charAt(3)) isGood = false; s.charAt(2) == s.charAt(3) s.charAt(2) s.charAt s 2 s.charAt(3) s.charAt s 3 isGood = false isGood false if(isGood) System.out.println("Good");
      	else System.out.println("Bad"); isGood 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 sc = new Scanner(System.in);
      	String s = sc.next();
      	boolean isGood = true;
      	if(s.charAt(0) == s.charAt(1)) isGood = false;
      	if(s.charAt(1) == s.charAt(2)) isGood = false;
      	if(s.charAt(2) == s.charAt(3)) isGood = false;
      	
      	if(isGood) System.out.println("Good");
      	else System.out.println("Bad");
    }
} public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	String s = sc.next();
      	boolean isGood = true;
      	if(s.charAt(0) == s.charAt(1)) isGood = false;
      	if(s.charAt(1) == s.charAt(2)) isGood = false;
      	if(s.charAt(2) == s.charAt(3)) isGood = false;
      	
      	if(isGood) System.out.println("Good");
      	else System.out.println("Bad");
    }
} Main
import java.util.*;
public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	String s = sc.next();
      	boolean isGood = true;
      	if(s.charAt(0) == s.charAt(1)) isGood = false;
      	if(s.charAt(1) == s.charAt(2)) isGood = false;
      	if(s.charAt(2) == s.charAt(3)) isGood = false;
      	
      	if(isGood) System.out.println("Good");
      	else System.out.println("Bad");
    }
}