import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    char[] s = scanner.next().toCharArray();
    boolean good = true;
    for (int i = 0; i < s.length - 1; i++) {
      if (s[i] == s[i + 1]) good = false;
    }
    if (good) System.out.println("Good");
    else System.out.println("Bad");
  }
} import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    char[] s = scanner.next().toCharArray();
    boolean good = true;
    for (int i = 0; i < s.length - 1; i++) {
      if (s[i] == s[i + 1]) good = false;
    }
    if (good) System.out.println("Good");
    else System.out.println("Bad");
  }
} Main public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    char[] s = scanner.next().toCharArray();
    boolean good = true;
    for (int i = 0; i < s.length - 1; i++) {
      if (s[i] == s[i + 1]) good = false;
    }
    if (good) System.out.println("Good");
    else System.out.println("Bad");
  } main {
    Scanner scanner = new Scanner(System.in);

    char[] s = scanner.next().toCharArray();
    boolean good = true;
    for (int i = 0; i < s.length - 1; i++) {
      if (s[i] == s[i + 1]) good = false;
    }
    if (good) System.out.println("Good");
    else System.out.println("Bad");
  } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) char[] s = scanner.next().toCharArray(); s scanner.next().toCharArray() scanner.next().toCharArray scanner.next() scanner.next scanner boolean good = true; good true for (int i = 0; i < s.length - 1; i++) {
      if (s[i] == s[i + 1]) good = false;
    } int i = 0; int i = 0; i 0 i < s.length - 1 i s.length - 1 s.length s s.length 1 i++ i++ i {
      if (s[i] == s[i + 1]) good = false;
    } {
      if (s[i] == s[i + 1]) good = false;
    } if (s[i] == s[i + 1]) good = false; s[i] == s[i + 1] s[i] s i s[i + 1] s i + 1 i 1 good = false good false if (good) System.out.println("Good");
    else System.out.println("Bad"); good 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 scanner = new Scanner(System.in);

    char[] s = scanner.next().toCharArray();
    boolean good = true;
    for (int i = 0; i < s.length - 1; i++) {
      if (s[i] == s[i + 1]) good = false;
    }
    if (good) System.out.println("Good");
    else System.out.println("Bad");
  }
} public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    char[] s = scanner.next().toCharArray();
    boolean good = true;
    for (int i = 0; i < s.length - 1; i++) {
      if (s[i] == s[i + 1]) good = false;
    }
    if (good) System.out.println("Good");
    else System.out.println("Bad");
  }
} Main
import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    char[] s = scanner.next().toCharArray();
    boolean good = true;
    for (int i = 0; i < s.length - 1; i++) {
      if (s[i] == s[i + 1]) good = false;
    }
    if (good) System.out.println("Good");
    else System.out.println("Bad");
  }
}
