
import java.util.Scanner;




public class Main{

  public static void main(String[] args){

    Scanner sc = new Scanner(System.in);

    String S = sc.next();

    String[] splitArray = S.split("");

    int flg = 0;



    for (int i = 0; i < splitArray.length - 1; i ++ ) {

      if (splitArray[i].equals(splitArray[i+1])) {

        System.out.println("Bad");

        System.exit(0);

      }

    }


    

    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();

    String[] splitArray = S.split("");

    int flg = 0;



    for (int i = 0; i < splitArray.length - 1; i ++ ) {

      if (splitArray[i].equals(splitArray[i+1])) {

        System.out.println("Bad");

        System.exit(0);

      }

    }


    

    System.out.println("Good");



  }


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

    Scanner sc = new Scanner(System.in);

    String S = sc.next();

    String[] splitArray = S.split("");

    int flg = 0;



    for (int i = 0; i < splitArray.length - 1; i ++ ) {

      if (splitArray[i].equals(splitArray[i+1])) {

        System.out.println("Bad");

        System.exit(0);

      }

    }


    

    System.out.println("Good");



  } main {

    Scanner sc = new Scanner(System.in);

    String S = sc.next();

    String[] splitArray = S.split("");

    int flg = 0;



    for (int i = 0; i < splitArray.length - 1; i ++ ) {

      if (splitArray[i].equals(splitArray[i+1])) {

        System.out.println("Bad");

        System.exit(0);

      }

    }


    

    System.out.println("Good");



  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc String[] splitArray = S.split(""); splitArray S.split("") S.split S "" int flg = 0; flg 0 for (int i = 0; i < splitArray.length - 1; i ++ ) {

      if (splitArray[i].equals(splitArray[i+1])) {

        System.out.println("Bad");

        System.exit(0);

      }

    } int i = 0; int i = 0; i 0 i < splitArray.length - 1 i splitArray.length - 1 splitArray.length splitArray splitArray.length 1 i ++ i ++ i {

      if (splitArray[i].equals(splitArray[i+1])) {

        System.out.println("Bad");

        System.exit(0);

      }

    } {

      if (splitArray[i].equals(splitArray[i+1])) {

        System.out.println("Bad");

        System.exit(0);

      }

    } if (splitArray[i].equals(splitArray[i+1])) {

        System.out.println("Bad");

        System.exit(0);

      } splitArray[i].equals(splitArray[i+1]) splitArray[i].equals splitArray[i] splitArray i splitArray[i+1] splitArray i+1 i 1 {

        System.out.println("Bad");

        System.exit(0);

      } System.out.println("Bad") System.out.println System.out System System.out "Bad" System.exit(0) System.exit System 0 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();

    String[] splitArray = S.split("");

    int flg = 0;



    for (int i = 0; i < splitArray.length - 1; i ++ ) {

      if (splitArray[i].equals(splitArray[i+1])) {

        System.out.println("Bad");

        System.exit(0);

      }

    }


    

    System.out.println("Good");



  }


} public class Main{

  public static void main(String[] args){

    Scanner sc = new Scanner(System.in);

    String S = sc.next();

    String[] splitArray = S.split("");

    int flg = 0;



    for (int i = 0; i < splitArray.length - 1; i ++ ) {

      if (splitArray[i].equals(splitArray[i+1])) {

        System.out.println("Bad");

        System.exit(0);

      }

    }


    

    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();

    String[] splitArray = S.split("");

    int flg = 0;



    for (int i = 0; i < splitArray.length - 1; i ++ ) {

      if (splitArray[i].equals(splitArray[i+1])) {

        System.out.println("Bad");

        System.exit(0);

      }

    }


    

    System.out.println("Good");



  }


}




