import java.util.Scanner;
import java.util.List;
import java.util.ArrayList;
import java.util.Objects;

public class Main {
  public static void main(String[] args ){

    Scanner sc = new Scanner(System.in);

    String S = sc.next();

    boolean repetNum = false;
    for (int i = 0; i < S.length() - 1; i++) {
      if(S.charAt(i) == S.charAt(i + 1)) repetNum = true;
    }

    System.out.println(repetNum ? "Bad" : "Good");

  }
} import java.util.Scanner; Scanner java.util import java.util.List; List java.util import java.util.ArrayList; ArrayList java.util import java.util.Objects; Objects java.util public class Main {
  public static void main(String[] args ){

    Scanner sc = new Scanner(System.in);

    String S = sc.next();

    boolean repetNum = false;
    for (int i = 0; i < S.length() - 1; i++) {
      if(S.charAt(i) == S.charAt(i + 1)) repetNum = true;
    }

    System.out.println(repetNum ? "Bad" : "Good");

  }
} Main public static void main(String[] args ){

    Scanner sc = new Scanner(System.in);

    String S = sc.next();

    boolean repetNum = false;
    for (int i = 0; i < S.length() - 1; i++) {
      if(S.charAt(i) == S.charAt(i + 1)) repetNum = true;
    }

    System.out.println(repetNum ? "Bad" : "Good");

  } main {

    Scanner sc = new Scanner(System.in);

    String S = sc.next();

    boolean repetNum = false;
    for (int i = 0; i < S.length() - 1; i++) {
      if(S.charAt(i) == S.charAt(i + 1)) repetNum = true;
    }

    System.out.println(repetNum ? "Bad" : "Good");

  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc boolean repetNum = false; repetNum false for (int i = 0; i < S.length() - 1; i++) {
      if(S.charAt(i) == S.charAt(i + 1)) repetNum = true;
    } int i = 0; int i = 0; i 0 i < S.length() - 1 i S.length() - 1 S.length() S.length S 1 i++ i++ i {
      if(S.charAt(i) == S.charAt(i + 1)) repetNum = true;
    } {
      if(S.charAt(i) == S.charAt(i + 1)) repetNum = true;
    } if(S.charAt(i) == S.charAt(i + 1)) repetNum = true; 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 repetNum = true repetNum true System.out.println(repetNum ? "Bad" : "Good") System.out.println System.out System System.out repetNum ? "Bad" : "Good" repetNum "Bad" "Good" String[] args args public class Main {
  public static void main(String[] args ){

    Scanner sc = new Scanner(System.in);

    String S = sc.next();

    boolean repetNum = false;
    for (int i = 0; i < S.length() - 1; i++) {
      if(S.charAt(i) == S.charAt(i + 1)) repetNum = true;
    }

    System.out.println(repetNum ? "Bad" : "Good");

  }
} public class Main {
  public static void main(String[] args ){

    Scanner sc = new Scanner(System.in);

    String S = sc.next();

    boolean repetNum = false;
    for (int i = 0; i < S.length() - 1; i++) {
      if(S.charAt(i) == S.charAt(i + 1)) repetNum = true;
    }

    System.out.println(repetNum ? "Bad" : "Good");

  }
} Main
import java.util.Scanner;
import java.util.List;
import java.util.ArrayList;
import java.util.Objects;

public class Main {
  public static void main(String[] args ){

    Scanner sc = new Scanner(System.in);

    String S = sc.next();

    boolean repetNum = false;
    for (int i = 0; i < S.length() - 1; i++) {
      if(S.charAt(i) == S.charAt(i + 1)) repetNum = true;
    }

    System.out.println(repetNum ? "Bad" : "Good");

  }
}
