import java.io.*;
public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String line = in.readLine();
    if (line == null) {
      return;
    }
    char ch = 0;
    for (int i = 0; i < line.length(); i++) {
      char input = line.charAt(i);
      if (ch == input) {
        System.out.println("Bad");
        return;
      }
      ch = input;
    }
    System.out.println("Good");
    in.close();
  }
} import java.io.*; io.* java public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String line = in.readLine();
    if (line == null) {
      return;
    }
    char ch = 0;
    for (int i = 0; i < line.length(); i++) {
      char input = line.charAt(i);
      if (ch == input) {
        System.out.println("Bad");
        return;
      }
      ch = input;
    }
    System.out.println("Good");
    in.close();
  }
} Main public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String line = in.readLine();
    if (line == null) {
      return;
    }
    char ch = 0;
    for (int i = 0; i < line.length(); i++) {
      char input = line.charAt(i);
      if (ch == input) {
        System.out.println("Bad");
        return;
      }
      ch = input;
    }
    System.out.println("Good");
    in.close();
  } main {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String line = in.readLine();
    if (line == null) {
      return;
    }
    char ch = 0;
    for (int i = 0; i < line.length(); i++) {
      char input = line.charAt(i);
      if (ch == input) {
        System.out.println("Bad");
        return;
      }
      ch = input;
    }
    System.out.println("Good");
    in.close();
  } BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) String line = in.readLine(); line in.readLine() in.readLine in if (line == null) {
      return;
    } line == null line null {
      return;
    } return; char ch = 0; ch 0 for (int i = 0; i < line.length(); i++) {
      char input = line.charAt(i);
      if (ch == input) {
        System.out.println("Bad");
        return;
      }
      ch = input;
    } int i = 0; int i = 0; i 0 i < line.length() i line.length() line.length line i++ i++ i {
      char input = line.charAt(i);
      if (ch == input) {
        System.out.println("Bad");
        return;
      }
      ch = input;
    } {
      char input = line.charAt(i);
      if (ch == input) {
        System.out.println("Bad");
        return;
      }
      ch = input;
    } char input = line.charAt(i); input line.charAt(i) line.charAt line i if (ch == input) {
        System.out.println("Bad");
        return;
      } ch == input ch input {
        System.out.println("Bad");
        return;
      } System.out.println("Bad") System.out.println System.out System System.out "Bad" return; ch = input ch input System.out.println("Good") System.out.println System.out System System.out "Good" in.close() in.close in String[] args args public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String line = in.readLine();
    if (line == null) {
      return;
    }
    char ch = 0;
    for (int i = 0; i < line.length(); i++) {
      char input = line.charAt(i);
      if (ch == input) {
        System.out.println("Bad");
        return;
      }
      ch = input;
    }
    System.out.println("Good");
    in.close();
  }
} public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String line = in.readLine();
    if (line == null) {
      return;
    }
    char ch = 0;
    for (int i = 0; i < line.length(); i++) {
      char input = line.charAt(i);
      if (ch == input) {
        System.out.println("Bad");
        return;
      }
      ch = input;
    }
    System.out.println("Good");
    in.close();
  }
} Main
import java.io.*;
public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String line = in.readLine();
    if (line == null) {
      return;
    }
    char ch = 0;
    for (int i = 0; i < line.length(); i++) {
      char input = line.charAt(i);
      if (ch == input) {
        System.out.println("Bad");
        return;
      }
      ch = input;
    }
    System.out.println("Good");
    in.close();
  }
}
