import java.util.*;
import java.util.Collections;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    int cnt = 0;
    for (int i = 0; i < S.length() - 1; i++) {
      if (S.charAt(i) == S.charAt(i + 1)) {
        cnt++;
      }
    }
    if (cnt == 0) {
      System.out.println("Good");
    } else {
      System.out.println("Bad");
    }
  }
} import java.util.*; util.* java import java.util.Collections; Collections java.util public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    int cnt = 0;
    for (int i = 0; i < S.length() - 1; i++) {
      if (S.charAt(i) == S.charAt(i + 1)) {
        cnt++;
      }
    }
    if (cnt == 0) {
      System.out.println("Good");
    } else {
      System.out.println("Bad");
    }
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    int cnt = 0;
    for (int i = 0; i < S.length() - 1; i++) {
      if (S.charAt(i) == S.charAt(i + 1)) {
        cnt++;
      }
    }
    if (cnt == 0) {
      System.out.println("Good");
    } else {
      System.out.println("Bad");
    }
  } main {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    int cnt = 0;
    for (int i = 0; i < S.length() - 1; i++) {
      if (S.charAt(i) == S.charAt(i + 1)) {
        cnt++;
      }
    }
    if (cnt == 0) {
      System.out.println("Good");
    } else {
      System.out.println("Bad");
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc int cnt = 0; cnt 0 for (int i = 0; i < S.length() - 1; i++) {
      if (S.charAt(i) == S.charAt(i + 1)) {
        cnt++;
      }
    } 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)) {
        cnt++;
      }
    } {
      if (S.charAt(i) == S.charAt(i + 1)) {
        cnt++;
      }
    } if (S.charAt(i) == S.charAt(i + 1)) {
        cnt++;
      } 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 {
        cnt++;
      } cnt++ cnt if (cnt == 0) {
      System.out.println("Good");
    } else {
      System.out.println("Bad");
    } cnt == 0 cnt 0 {
      System.out.println("Good");
    } System.out.println("Good") System.out.println System.out System System.out "Good" {
      System.out.println("Bad");
    } 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 sc = new Scanner(System.in);
    String S = sc.next();
    int cnt = 0;
    for (int i = 0; i < S.length() - 1; i++) {
      if (S.charAt(i) == S.charAt(i + 1)) {
        cnt++;
      }
    }
    if (cnt == 0) {
      System.out.println("Good");
    } else {
      System.out.println("Bad");
    }
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    int cnt = 0;
    for (int i = 0; i < S.length() - 1; i++) {
      if (S.charAt(i) == S.charAt(i + 1)) {
        cnt++;
      }
    }
    if (cnt == 0) {
      System.out.println("Good");
    } else {
      System.out.println("Bad");
    }
  }
} Main
import java.util.*;
import java.util.Collections;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    int cnt = 0;
    for (int i = 0; i < S.length() - 1; i++) {
      if (S.charAt(i) == S.charAt(i + 1)) {
        cnt++;
      }
    }
    if (cnt == 0) {
      System.out.println("Good");
    } else {
      System.out.println("Bad");
    }
  }
}
