
import java.io.*;
import java.util.*;

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

    public static void solve(){
        Scanner sc = new Scanner(System.in);
 		String s = sc.next();
 		boolean flag = true;
 		for(int i=0;i<s.length()-1;i++){
 			if(s.charAt(i)==s.charAt(i+1)){
 				flag = false;
 			}
 		}       
 		if(flag){
 			System.out.println("Good");
 		}
 		else{
 			System.out.println("Bad");
 		}
    }
} import java.io.*; io.* java import java.util.*; util.* java class Main{
    public static void main(String[] args){
        solve();
    }

    public static void solve(){
        Scanner sc = new Scanner(System.in);
 		String s = sc.next();
 		boolean flag = true;
 		for(int i=0;i<s.length()-1;i++){
 			if(s.charAt(i)==s.charAt(i+1)){
 				flag = false;
 			}
 		}       
 		if(flag){
 			System.out.println("Good");
 		}
 		else{
 			System.out.println("Bad");
 		}
    }
} Main public static void main(String[] args){
        solve();
    } main {
        solve();
    } solve() solve String[] args args public static void solve(){
        Scanner sc = new Scanner(System.in);
 		String s = sc.next();
 		boolean flag = true;
 		for(int i=0;i<s.length()-1;i++){
 			if(s.charAt(i)==s.charAt(i+1)){
 				flag = false;
 			}
 		}       
 		if(flag){
 			System.out.println("Good");
 		}
 		else{
 			System.out.println("Bad");
 		}
    } solve {
        Scanner sc = new Scanner(System.in);
 		String s = sc.next();
 		boolean flag = true;
 		for(int i=0;i<s.length()-1;i++){
 			if(s.charAt(i)==s.charAt(i+1)){
 				flag = false;
 			}
 		}       
 		if(flag){
 			System.out.println("Good");
 		}
 		else{
 			System.out.println("Bad");
 		}
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc boolean flag = true; flag true for(int i=0;i<s.length()-1;i++){
 			if(s.charAt(i)==s.charAt(i+1)){
 				flag = false;
 			}
 		} 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(s.charAt(i)==s.charAt(i+1)){
 				flag = false;
 			}
 		} {
 			if(s.charAt(i)==s.charAt(i+1)){
 				flag = false;
 			}
 		} if(s.charAt(i)==s.charAt(i+1)){
 				flag = false;
 			} s.charAt(i)==s.charAt(i+1) s.charAt(i) s.charAt s i s.charAt(i+1) s.charAt s i+1 i 1 {
 				flag = false;
 			} flag = false flag false if(flag){
 			System.out.println("Good");
 		}
 		else{
 			System.out.println("Bad");
 		} flag {
 			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"

import java.io.*;
import java.util.*;

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

    public static void solve(){
        Scanner sc = new Scanner(System.in);
 		String s = sc.next();
 		boolean flag = true;
 		for(int i=0;i<s.length()-1;i++){
 			if(s.charAt(i)==s.charAt(i+1)){
 				flag = false;
 			}
 		}       
 		if(flag){
 			System.out.println("Good");
 		}
 		else{
 			System.out.println("Bad");
 		}
    }
}