import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n=sc.nextInt();
    if((n%10)==(n/10%10)||(n/10%10)==(n/100%10)||(n/100%10)==(n/1000)){
        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);
    int n=sc.nextInt();
    if((n%10)==(n/10%10)||(n/10%10)==(n/100%10)||(n/100%10)==(n/1000)){
        System.out.println("Bad");
    }else{
        System.out.println("Good");
    }
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n=sc.nextInt();
    if((n%10)==(n/10%10)||(n/10%10)==(n/100%10)||(n/100%10)==(n/1000)){
        System.out.println("Bad");
    }else{
        System.out.println("Good");
    }
  } main {
    Scanner sc = new Scanner(System.in);
    int n=sc.nextInt();
    if((n%10)==(n/10%10)||(n/10%10)==(n/100%10)||(n/100%10)==(n/1000)){
        System.out.println("Bad");
    }else{
        System.out.println("Good");
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc if((n%10)==(n/10%10)||(n/10%10)==(n/100%10)||(n/100%10)==(n/1000)){
        System.out.println("Bad");
    }else{
        System.out.println("Good");
    } (n%10)==(n/10%10)||(n/10%10)==(n/100%10)||(n/100%10)==(n/1000) (n%10)==(n/10%10)||(n/10%10)==(n/100%10)||(n/100%10)==(n/1000) (n%10)==(n/10%10) (n%10) n 10 (n/10%10) n/10 n 10 10 (n/10%10)==(n/100%10) (n/10%10) n/10 n 10 10 (n/100%10) n/100 n 100 10 (n/100%10)==(n/1000) (n/100%10) n/100 n 100 10 (n/1000) n 1000 {
        System.out.println("Bad");
    } System.out.println("Bad") System.out.println System.out System System.out "Bad" {
        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){
    Scanner sc = new Scanner(System.in);
    int n=sc.nextInt();
    if((n%10)==(n/10%10)||(n/10%10)==(n/100%10)||(n/100%10)==(n/1000)){
        System.out.println("Bad");
    }else{
        System.out.println("Good");
    }
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n=sc.nextInt();
    if((n%10)==(n/10%10)||(n/10%10)==(n/100%10)||(n/100%10)==(n/1000)){
        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);
    int n=sc.nextInt();
    if((n%10)==(n/10%10)||(n/10%10)==(n/100%10)||(n/100%10)==(n/1000)){
        System.out.println("Bad");
    }else{
        System.out.println("Good");
    }
  }
}
