import java.io.BufferedReader;
import java.io.*;
import java.util.*;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Collections;
import java.util.Arrays;

public class Main {
	public static void main(final String[] args){
    
    Scanner sc = new Scanner(System.in);
    
    List<Character> list = new ArrayList<>();
    String s = sc.next();
    int count = 0;

    for(int i = 0; i < s.length(); i++){
        list.add(s.charAt(i));

        
        }
    
    for(int i = 0; i < s.length()-1; i++){
        if(list.get(i).equals(list.get(i+1))){
            count++;
        }
    }
    if(count == 0){
        System.out.println("Good");
    }else{
        System.out.println("Bad");
    }




    
    


    
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.*; io.* java import java.util.*; util.* java import java.util.ArrayList; ArrayList java.util import java.util.Iterator; Iterator java.util import java.util.List; List java.util import java.util.Collections; Collections java.util import java.util.Arrays; Arrays java.util public class Main {
	public static void main(final String[] args){
    
    Scanner sc = new Scanner(System.in);
    
    List<Character> list = new ArrayList<>();
    String s = sc.next();
    int count = 0;

    for(int i = 0; i < s.length(); i++){
        list.add(s.charAt(i));

        
        }
    
    for(int i = 0; i < s.length()-1; i++){
        if(list.get(i).equals(list.get(i+1))){
            count++;
        }
    }
    if(count == 0){
        System.out.println("Good");
    }else{
        System.out.println("Bad");
    }




    
    


    
	}
} Main public static void main(final String[] args){
    
    Scanner sc = new Scanner(System.in);
    
    List<Character> list = new ArrayList<>();
    String s = sc.next();
    int count = 0;

    for(int i = 0; i < s.length(); i++){
        list.add(s.charAt(i));

        
        }
    
    for(int i = 0; i < s.length()-1; i++){
        if(list.get(i).equals(list.get(i+1))){
            count++;
        }
    }
    if(count == 0){
        System.out.println("Good");
    }else{
        System.out.println("Bad");
    }




    
    


    
	} main {
    
    Scanner sc = new Scanner(System.in);
    
    List<Character> list = new ArrayList<>();
    String s = sc.next();
    int count = 0;

    for(int i = 0; i < s.length(); i++){
        list.add(s.charAt(i));

        
        }
    
    for(int i = 0; i < s.length()-1; i++){
        if(list.get(i).equals(list.get(i+1))){
            count++;
        }
    }
    if(count == 0){
        System.out.println("Good");
    }else{
        System.out.println("Bad");
    }




    
    


    
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) List<Character> list = new ArrayList<>(); list new ArrayList<>() String s = sc.next(); s sc.next() sc.next sc int count = 0; count 0 for(int i = 0; i < s.length(); i++){
        list.add(s.charAt(i));

        
        } int i = 0; int i = 0; i 0 i < s.length() i s.length() s.length s i++ i++ i {
        list.add(s.charAt(i));

        
        } {
        list.add(s.charAt(i));

        
        } list.add(s.charAt(i)) list.add list s.charAt(i) s.charAt s i for(int i = 0; i < s.length()-1; i++){
        if(list.get(i).equals(list.get(i+1))){
            count++;
        }
    } int i = 0; int i = 0; i 0 i < s.length()-1 i s.length()-1 s.length() s.length s 1 i++ i++ i {
        if(list.get(i).equals(list.get(i+1))){
            count++;
        }
    } {
        if(list.get(i).equals(list.get(i+1))){
            count++;
        }
    } if(list.get(i).equals(list.get(i+1))){
            count++;
        } list.get(i).equals(list.get(i+1)) list.get(i).equals list.get(i) list.get list i list.get(i+1) list.get list i+1 i 1 {
            count++;
        } count++ count if(count == 0){
        System.out.println("Good");
    }else{
        System.out.println("Bad");
    } count == 0 count 0 {
        System.out.println("Good");
    } System.out.println("Good") System.out.println System.out System System.out "Good" {
        System.out.println("Bad");
    } System.out.println("Bad") System.out.println System.out System System.out "Bad" final String[] args args public class Main {
	public static void main(final String[] args){
    
    Scanner sc = new Scanner(System.in);
    
    List<Character> list = new ArrayList<>();
    String s = sc.next();
    int count = 0;

    for(int i = 0; i < s.length(); i++){
        list.add(s.charAt(i));

        
        }
    
    for(int i = 0; i < s.length()-1; i++){
        if(list.get(i).equals(list.get(i+1))){
            count++;
        }
    }
    if(count == 0){
        System.out.println("Good");
    }else{
        System.out.println("Bad");
    }




    
    


    
	}
} public class Main {
	public static void main(final String[] args){
    
    Scanner sc = new Scanner(System.in);
    
    List<Character> list = new ArrayList<>();
    String s = sc.next();
    int count = 0;

    for(int i = 0; i < s.length(); i++){
        list.add(s.charAt(i));

        
        }
    
    for(int i = 0; i < s.length()-1; i++){
        if(list.get(i).equals(list.get(i+1))){
            count++;
        }
    }
    if(count == 0){
        System.out.println("Good");
    }else{
        System.out.println("Bad");
    }




    
    


    
	}
} Main
import java.io.BufferedReader;
import java.io.*;
import java.util.*;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Collections;
import java.util.Arrays;

public class Main {
	public static void main(final String[] args){
    
    Scanner sc = new Scanner(System.in);
    
    List<Character> list = new ArrayList<>();
    String s = sc.next();
    int count = 0;

    for(int i = 0; i < s.length(); i++){
        list.add(s.charAt(i));

        
        }
    
    for(int i = 0; i < s.length()-1; i++){
        if(list.get(i).equals(list.get(i+1))){
            count++;
        }
    }
    if(count == 0){
        System.out.println("Good");
    }else{
        System.out.println("Bad");
    }




    
    


    
	}
}