import java.util.*;
 
class Main {
    public static void main(String[] args) {
      
        Scanner sc = new Scanner(System.in);
        int S = sc.nextInt();
        int nam[] = new int[4]; int w = 1000;
        int flag = 0;
      
      for(int i = 0; i<4 ;i++){
        nam[i] = S/w;S%=w;w /= 10;
      }
      for(int i = 1;i<4;i++){
       if(nam[i]==nam[i-1]){flag=1;} 
      }
	  if(flag==1){System.out.print("Bad");}
      else{System.out.print("Good");}
      
    }
} import java.util.*; util.* java class Main {
    public static void main(String[] args) {
      
        Scanner sc = new Scanner(System.in);
        int S = sc.nextInt();
        int nam[] = new int[4]; int w = 1000;
        int flag = 0;
      
      for(int i = 0; i<4 ;i++){
        nam[i] = S/w;S%=w;w /= 10;
      }
      for(int i = 1;i<4;i++){
       if(nam[i]==nam[i-1]){flag=1;} 
      }
	  if(flag==1){System.out.print("Bad");}
      else{System.out.print("Good");}
      
    }
} Main public static void main(String[] args) {
      
        Scanner sc = new Scanner(System.in);
        int S = sc.nextInt();
        int nam[] = new int[4]; int w = 1000;
        int flag = 0;
      
      for(int i = 0; i<4 ;i++){
        nam[i] = S/w;S%=w;w /= 10;
      }
      for(int i = 1;i<4;i++){
       if(nam[i]==nam[i-1]){flag=1;} 
      }
	  if(flag==1){System.out.print("Bad");}
      else{System.out.print("Good");}
      
    } main {
      
        Scanner sc = new Scanner(System.in);
        int S = sc.nextInt();
        int nam[] = new int[4]; int w = 1000;
        int flag = 0;
      
      for(int i = 0; i<4 ;i++){
        nam[i] = S/w;S%=w;w /= 10;
      }
      for(int i = 1;i<4;i++){
       if(nam[i]==nam[i-1]){flag=1;} 
      }
	  if(flag==1){System.out.print("Bad");}
      else{System.out.print("Good");}
      
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int S = sc.nextInt(); S sc.nextInt() sc.nextInt sc int nam[] = new int[4]; nam new int[4] 4 int w = 1000; w 1000 int flag = 0; flag 0 for(int i = 0; i<4 ;i++){
        nam[i] = S/w;S%=w;w /= 10;
      } int i = 0; int i = 0; i 0 i<4 i 4 i++ i++ i {
        nam[i] = S/w;S%=w;w /= 10;
      } {
        nam[i] = S/w;S%=w;w /= 10;
      } nam[i] = S/w nam[i] nam i S/w S w S%=w S w w /= 10 w 10 for(int i = 1;i<4;i++){
       if(nam[i]==nam[i-1]){flag=1;} 
      } int i = 1; int i = 1; i 1 i<4 i 4 i++ i++ i {
       if(nam[i]==nam[i-1]){flag=1;} 
      } {
       if(nam[i]==nam[i-1]){flag=1;} 
      } if(nam[i]==nam[i-1]){flag=1;} nam[i]==nam[i-1] nam[i] nam i nam[i-1] nam i-1 i 1 {flag=1;} flag=1 flag 1 if(flag==1){System.out.print("Bad");}
      else{System.out.print("Good");} flag==1 flag 1 {System.out.print("Bad");} System.out.print("Bad") System.out.print System.out System System.out "Bad" {System.out.print("Good");} System.out.print("Good") System.out.print System.out System System.out "Good" String[] args args
import java.util.*;
 
class Main {
    public static void main(String[] args) {
      
        Scanner sc = new Scanner(System.in);
        int S = sc.nextInt();
        int nam[] = new int[4]; int w = 1000;
        int flag = 0;
      
      for(int i = 0; i<4 ;i++){
        nam[i] = S/w;S%=w;w /= 10;
      }
      for(int i = 1;i<4;i++){
       if(nam[i]==nam[i-1]){flag=1;} 
      }
	  if(flag==1){System.out.print("Bad");}
      else{System.out.print("Good");}
      
    }
}