import java.io.*;

class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String str = br.readLine();
    
    for (int i = 1; i < str.length(); i++) {
      if (str.charAt(i) == str.charAt(i-1)) {
        System.out.println("Bad");
        return;
      }
    }
    System.out.println("Good");
  }
} import java.io.*; io.* java class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String str = br.readLine();
    
    for (int i = 1; i < str.length(); i++) {
      if (str.charAt(i) == str.charAt(i-1)) {
        System.out.println("Bad");
        return;
      }
    }
    System.out.println("Good");
  }
} Main public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String str = br.readLine();
    
    for (int i = 1; i < str.length(); i++) {
      if (str.charAt(i) == str.charAt(i-1)) {
        System.out.println("Bad");
        return;
      }
    }
    System.out.println("Good");
  } main {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String str = br.readLine();
    
    for (int i = 1; i < str.length(); i++) {
      if (str.charAt(i) == str.charAt(i-1)) {
        System.out.println("Bad");
        return;
      }
    }
    System.out.println("Good");
  } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str = br.readLine(); str br.readLine() br.readLine br for (int i = 1; i < str.length(); i++) {
      if (str.charAt(i) == str.charAt(i-1)) {
        System.out.println("Bad");
        return;
      }
    } int i = 1; int i = 1; i 1 i < str.length() i str.length() str.length str i++ i++ i {
      if (str.charAt(i) == str.charAt(i-1)) {
        System.out.println("Bad");
        return;
      }
    } {
      if (str.charAt(i) == str.charAt(i-1)) {
        System.out.println("Bad");
        return;
      }
    } if (str.charAt(i) == str.charAt(i-1)) {
        System.out.println("Bad");
        return;
      } str.charAt(i) == str.charAt(i-1) str.charAt(i) str.charAt str i str.charAt(i-1) str.charAt str i-1 i 1 {
        System.out.println("Bad");
        return;
      } System.out.println("Bad") System.out.println System.out System System.out "Bad" return; System.out.println("Good") System.out.println System.out System System.out "Good" String[] args args
import java.io.*;

class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String str = br.readLine();
    
    for (int i = 1; i < str.length(); i++) {
      if (str.charAt(i) == str.charAt(i-1)) {
        System.out.println("Bad");
        return;
      }
    }
    System.out.println("Good");
  }
}