import java.util.Scanner;

public class Main {
    public static void main(String args[]) {

        // Input
        Scanner sc = new Scanner(System.in);

        String str = sc.next();
        String result = "Good";

        for ( int i = 0; i < str.length()-1; i++ ) {
           int j = i + 1;
           if ( str.substring(i, i+1).equals(str.substring(j, j+1)) ) {
              result = "Bad";
              break;
           }
        }

        // Output
        System.out.println(result);

        sc.close();
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String args[]) {

        // Input
        Scanner sc = new Scanner(System.in);

        String str = sc.next();
        String result = "Good";

        for ( int i = 0; i < str.length()-1; i++ ) {
           int j = i + 1;
           if ( str.substring(i, i+1).equals(str.substring(j, j+1)) ) {
              result = "Bad";
              break;
           }
        }

        // Output
        System.out.println(result);

        sc.close();
    }
} Main public static void main(String args[]) {

        // Input
        Scanner sc = new Scanner(System.in);

        String str = sc.next();
        String result = "Good";

        for ( int i = 0; i < str.length()-1; i++ ) {
           int j = i + 1;
           if ( str.substring(i, i+1).equals(str.substring(j, j+1)) ) {
              result = "Bad";
              break;
           }
        }

        // Output
        System.out.println(result);

        sc.close();
    } main {

        // Input
        Scanner sc = new Scanner(System.in);

        String str = sc.next();
        String result = "Good";

        for ( int i = 0; i < str.length()-1; i++ ) {
           int j = i + 1;
           if ( str.substring(i, i+1).equals(str.substring(j, j+1)) ) {
              result = "Bad";
              break;
           }
        }

        // Output
        System.out.println(result);

        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = sc.next(); str sc.next() sc.next sc String result = "Good"; result "Good" for ( int i = 0; i < str.length()-1; i++ ) {
           int j = i + 1;
           if ( str.substring(i, i+1).equals(str.substring(j, j+1)) ) {
              result = "Bad";
              break;
           }
        } int i = 0; int i = 0; i 0 i < str.length()-1 i str.length()-1 str.length() str.length str 1 i++ i++ i {
           int j = i + 1;
           if ( str.substring(i, i+1).equals(str.substring(j, j+1)) ) {
              result = "Bad";
              break;
           }
        } {
           int j = i + 1;
           if ( str.substring(i, i+1).equals(str.substring(j, j+1)) ) {
              result = "Bad";
              break;
           }
        } int j = i + 1; j i + 1 i 1 if ( str.substring(i, i+1).equals(str.substring(j, j+1)) ) {
              result = "Bad";
              break;
           } str.substring(i, i+1).equals(str.substring(j, j+1)) str.substring(i, i+1).equals str.substring(i, i+1) str.substring str i i+1 i 1 str.substring(j, j+1) str.substring str j j+1 j 1 {
              result = "Bad";
              break;
           } result = "Bad" result "Bad" break; System.out.println(result) System.out.println System.out System System.out result sc.close() sc.close sc String args[] args public class Main {
    public static void main(String args[]) {

        // Input
        Scanner sc = new Scanner(System.in);

        String str = sc.next();
        String result = "Good";

        for ( int i = 0; i < str.length()-1; i++ ) {
           int j = i + 1;
           if ( str.substring(i, i+1).equals(str.substring(j, j+1)) ) {
              result = "Bad";
              break;
           }
        }

        // Output
        System.out.println(result);

        sc.close();
    }
} public class Main {
    public static void main(String args[]) {

        // Input
        Scanner sc = new Scanner(System.in);

        String str = sc.next();
        String result = "Good";

        for ( int i = 0; i < str.length()-1; i++ ) {
           int j = i + 1;
           if ( str.substring(i, i+1).equals(str.substring(j, j+1)) ) {
              result = "Bad";
              break;
           }
        }

        // Output
        System.out.println(result);

        sc.close();
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String args[]) {

        // Input
        Scanner sc = new Scanner(System.in);

        String str = sc.next();
        String result = "Good";

        for ( int i = 0; i < str.length()-1; i++ ) {
           int j = i + 1;
           if ( str.substring(i, i+1).equals(str.substring(j, j+1)) ) {
              result = "Bad";
              break;
           }
        }

        // Output
        System.out.println(result);

        sc.close();
    }
}
