import java.util.*;
public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      String str = sc.next();
      String x1 = str.substring(0,1);
      String x2 = str.substring(1,2);
      String x3 = str.substring(2,3);
      String x4 = str.substring(3,4);
      if(x1.equals(x2)||x2.equals(x3)||x3.equals(x4))
        System.out.println("Bad");
      else System.out.println("Good");
    }
} import java.util.*; util.* java public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      String str = sc.next();
      String x1 = str.substring(0,1);
      String x2 = str.substring(1,2);
      String x3 = str.substring(2,3);
      String x4 = str.substring(3,4);
      if(x1.equals(x2)||x2.equals(x3)||x3.equals(x4))
        System.out.println("Bad");
      else System.out.println("Good");
    }
} Main public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      String str = sc.next();
      String x1 = str.substring(0,1);
      String x2 = str.substring(1,2);
      String x3 = str.substring(2,3);
      String x4 = str.substring(3,4);
      if(x1.equals(x2)||x2.equals(x3)||x3.equals(x4))
        System.out.println("Bad");
      else System.out.println("Good");
    } main {
    	Scanner sc = new Scanner(System.in);
      String str = sc.next();
      String x1 = str.substring(0,1);
      String x2 = str.substring(1,2);
      String x3 = str.substring(2,3);
      String x4 = str.substring(3,4);
      if(x1.equals(x2)||x2.equals(x3)||x3.equals(x4))
        System.out.println("Bad");
      else 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 String x1 = str.substring(0,1); x1 str.substring(0,1) str.substring str 0 1 String x2 = str.substring(1,2); x2 str.substring(1,2) str.substring str 1 2 String x3 = str.substring(2,3); x3 str.substring(2,3) str.substring str 2 3 String x4 = str.substring(3,4); x4 str.substring(3,4) str.substring str 3 4 if(x1.equals(x2)||x2.equals(x3)||x3.equals(x4))
        System.out.println("Bad");
      else System.out.println("Good"); x1.equals(x2)||x2.equals(x3)||x3.equals(x4) x1.equals(x2)||x2.equals(x3)||x3.equals(x4) x1.equals(x2) x1.equals x1 x2 x2.equals(x3) x2.equals x2 x3 x3.equals(x4) x3.equals x3 x4 System.out.println("Bad") System.out.println System.out System System.out "Bad" 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();
      String x1 = str.substring(0,1);
      String x2 = str.substring(1,2);
      String x3 = str.substring(2,3);
      String x4 = str.substring(3,4);
      if(x1.equals(x2)||x2.equals(x3)||x3.equals(x4))
        System.out.println("Bad");
      else System.out.println("Good");
    }
} public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      String str = sc.next();
      String x1 = str.substring(0,1);
      String x2 = str.substring(1,2);
      String x3 = str.substring(2,3);
      String x4 = str.substring(3,4);
      if(x1.equals(x2)||x2.equals(x3)||x3.equals(x4))
        System.out.println("Bad");
      else System.out.println("Good");
    }
} Main
import java.util.*;
public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      String str = sc.next();
      String x1 = str.substring(0,1);
      String x2 = str.substring(1,2);
      String x3 = str.substring(2,3);
      String x4 = str.substring(3,4);
      if(x1.equals(x2)||x2.equals(x3)||x3.equals(x4))
        System.out.println("Bad");
      else System.out.println("Good");
    }
}
