import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String str = in.readLine();
    char[] c = str.toCharArray();
    System.out.println(c[0]==c[1]||c[1]==c[2]||c[2]==c[3]?"Bad":"Good");
  }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.IOException; IOException java.io public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String str = in.readLine();
    char[] c = str.toCharArray();
    System.out.println(c[0]==c[1]||c[1]==c[2]||c[2]==c[3]?"Bad":"Good");
  }
} Main public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String str = in.readLine();
    char[] c = str.toCharArray();
    System.out.println(c[0]==c[1]||c[1]==c[2]||c[2]==c[3]?"Bad":"Good");
  } main {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String str = in.readLine();
    char[] c = str.toCharArray();
    System.out.println(c[0]==c[1]||c[1]==c[2]||c[2]==c[3]?"Bad":"Good");
  } BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) String str = in.readLine(); str in.readLine() in.readLine in char[] c = str.toCharArray(); c str.toCharArray() str.toCharArray str System.out.println(c[0]==c[1]||c[1]==c[2]||c[2]==c[3]?"Bad":"Good") System.out.println System.out System System.out c[0]==c[1]||c[1]==c[2]||c[2]==c[3]?"Bad":"Good" c[0]==c[1]||c[1]==c[2]||c[2]==c[3] c[0]==c[1]||c[1]==c[2]||c[2]==c[3] c[0]==c[1] c[0] c 0 c[1] c 1 c[1]==c[2] c[1] c 1 c[2] c 2 c[2]==c[3] c[2] c 2 c[3] c 3 "Bad" "Good" String[] args args public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String str = in.readLine();
    char[] c = str.toCharArray();
    System.out.println(c[0]==c[1]||c[1]==c[2]||c[2]==c[3]?"Bad":"Good");
  }
} public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String str = in.readLine();
    char[] c = str.toCharArray();
    System.out.println(c[0]==c[1]||c[1]==c[2]||c[2]==c[3]?"Bad":"Good");
  }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String str = in.readLine();
    char[] c = str.toCharArray();
    System.out.println(c[0]==c[1]||c[1]==c[2]||c[2]==c[3]?"Bad":"Good");
  }
}