import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next().toUpperCase();
        char a[] = s.toCharArray();
         int count = 0 ;
        for(int j = 0 ; j<a.length -1 ; j++)
        {
        
              if(a[j+1]==a[j]){
                 count++;
                   break ;
              }  
             
              }
        
          
        
        if(count>0)System.out.println("Bad");
        else System.out.println("Good");
    }
    
    
    
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next().toUpperCase();
        char a[] = s.toCharArray();
         int count = 0 ;
        for(int j = 0 ; j<a.length -1 ; j++)
        {
        
              if(a[j+1]==a[j]){
                 count++;
                   break ;
              }  
             
              }
        
          
        
        if(count>0)System.out.println("Bad");
        else System.out.println("Good");
    }
    
    
    
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next().toUpperCase();
        char a[] = s.toCharArray();
         int count = 0 ;
        for(int j = 0 ; j<a.length -1 ; j++)
        {
        
              if(a[j+1]==a[j]){
                 count++;
                   break ;
              }  
             
              }
        
          
        
        if(count>0)System.out.println("Bad");
        else System.out.println("Good");
    } main {
        Scanner sc = new Scanner(System.in);
        String s = sc.next().toUpperCase();
        char a[] = s.toCharArray();
         int count = 0 ;
        for(int j = 0 ; j<a.length -1 ; j++)
        {
        
              if(a[j+1]==a[j]){
                 count++;
                   break ;
              }  
             
              }
        
          
        
        if(count>0)System.out.println("Bad");
        else System.out.println("Good");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next().toUpperCase(); s sc.next().toUpperCase() sc.next().toUpperCase sc.next() sc.next sc char a[] = s.toCharArray(); a s.toCharArray() s.toCharArray s int count = 0 ; count 0 for(int j = 0 ; j<a.length -1 ; j++)
        {
        
              if(a[j+1]==a[j]){
                 count++;
                   break ;
              }  
             
              } int j = 0 ; int j = 0 ; j 0 j<a.length -1 j a.length -1 a.length a a.length 1 j++ j++ j {
        
              if(a[j+1]==a[j]){
                 count++;
                   break ;
              }  
             
              } {
        
              if(a[j+1]==a[j]){
                 count++;
                   break ;
              }  
             
              } if(a[j+1]==a[j]){
                 count++;
                   break ;
              } a[j+1]==a[j] a[j+1] a j+1 j 1 a[j] a j {
                 count++;
                   break ;
              } count++ count break ; if(count>0)System.out.println("Bad");
        else System.out.println("Good"); count>0 count 0 System.out.println("Bad") System.out.println System.out System System.out "Bad" System.out.println("Good") System.out.println 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 s = sc.next().toUpperCase();
        char a[] = s.toCharArray();
         int count = 0 ;
        for(int j = 0 ; j<a.length -1 ; j++)
        {
        
              if(a[j+1]==a[j]){
                 count++;
                   break ;
              }  
             
              }
        
          
        
        if(count>0)System.out.println("Bad");
        else System.out.println("Good");
    }
    
    
    
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next().toUpperCase();
        char a[] = s.toCharArray();
         int count = 0 ;
        for(int j = 0 ; j<a.length -1 ; j++)
        {
        
              if(a[j+1]==a[j]){
                 count++;
                   break ;
              }  
             
              }
        
          
        
        if(count>0)System.out.println("Bad");
        else System.out.println("Good");
    }
    
    
    
} Main
import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next().toUpperCase();
        char a[] = s.toCharArray();
         int count = 0 ;
        for(int j = 0 ; j<a.length -1 ; j++)
        {
        
              if(a[j+1]==a[j]){
                 count++;
                   break ;
              }  
             
              }
        
          
        
        if(count>0)System.out.println("Bad");
        else System.out.println("Good");
    }
    
    
    
}
