import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S1 = sc.next();
        String str = String.valueOf(S1);
        String W2=null;
        String W1=null;
        for(int count=1;count<=4;count++){
         W1 = str.substring(count-1,count);
            if(W1.equals(W2)){
            System.out.print("Bad");
            return;
        }
        W2=W1;
        }
        System.out.print("Good");
   	 }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S1 = sc.next();
        String str = String.valueOf(S1);
        String W2=null;
        String W1=null;
        for(int count=1;count<=4;count++){
         W1 = str.substring(count-1,count);
            if(W1.equals(W2)){
            System.out.print("Bad");
            return;
        }
        W2=W1;
        }
        System.out.print("Good");
   	 }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S1 = sc.next();
        String str = String.valueOf(S1);
        String W2=null;
        String W1=null;
        for(int count=1;count<=4;count++){
         W1 = str.substring(count-1,count);
            if(W1.equals(W2)){
            System.out.print("Bad");
            return;
        }
        W2=W1;
        }
        System.out.print("Good");
   	 } main {
        Scanner sc = new Scanner(System.in);
        String S1 = sc.next();
        String str = String.valueOf(S1);
        String W2=null;
        String W1=null;
        for(int count=1;count<=4;count++){
         W1 = str.substring(count-1,count);
            if(W1.equals(W2)){
            System.out.print("Bad");
            return;
        }
        W2=W1;
        }
        System.out.print("Good");
   	 } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S1 = sc.next(); S1 sc.next() sc.next sc String str = String.valueOf(S1); str String.valueOf(S1) String.valueOf String S1 String W2=null; W2 null String W1=null; W1 null for(int count=1;count<=4;count++){
         W1 = str.substring(count-1,count);
            if(W1.equals(W2)){
            System.out.print("Bad");
            return;
        }
        W2=W1;
        } int count=1; int count=1; count 1 count<=4 count 4 count++ count++ count {
         W1 = str.substring(count-1,count);
            if(W1.equals(W2)){
            System.out.print("Bad");
            return;
        }
        W2=W1;
        } {
         W1 = str.substring(count-1,count);
            if(W1.equals(W2)){
            System.out.print("Bad");
            return;
        }
        W2=W1;
        } W1 = str.substring(count-1,count) W1 str.substring(count-1,count) str.substring str count-1 count 1 count if(W1.equals(W2)){
            System.out.print("Bad");
            return;
        } W1.equals(W2) W1.equals W1 W2 {
            System.out.print("Bad");
            return;
        } System.out.print("Bad") System.out.print System.out System System.out "Bad" return; W2=W1 W2 W1 System.out.print("Good") System.out.print System.out System System.out "Good" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S1 = sc.next();
        String str = String.valueOf(S1);
        String W2=null;
        String W1=null;
        for(int count=1;count<=4;count++){
         W1 = str.substring(count-1,count);
            if(W1.equals(W2)){
            System.out.print("Bad");
            return;
        }
        W2=W1;
        }
        System.out.print("Good");
   	 }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S1 = sc.next();
        String str = String.valueOf(S1);
        String W2=null;
        String W1=null;
        for(int count=1;count<=4;count++){
         W1 = str.substring(count-1,count);
            if(W1.equals(W2)){
            System.out.print("Bad");
            return;
        }
        W2=W1;
        }
        System.out.print("Good");
   	 }
} Main
import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S1 = sc.next();
        String str = String.valueOf(S1);
        String W2=null;
        String W1=null;
        for(int count=1;count<=4;count++){
         W1 = str.substring(count-1,count);
            if(W1.equals(W2)){
            System.out.print("Bad");
            return;
        }
        W2=W1;
        }
        System.out.print("Good");
   	 }
}