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