import java.util.*;
class Main
{
  static public void main(String args[])
  {
    Scanner in = new Scanner(System.in);
    String s = in.nextLine();
    boolean b = false;
    for(int i=0; i<s.length()-1; i++)
    {
      if(s.charAt(i) == s.charAt(i+1))
      {
        b = true;
      }
    }
    if(!b)
    {
      System.out.println("Good");
    }
    else
    {
      System.out.println("Bad");
    }
  }
} import java.util.*; util.* java class Main
{
  static public void main(String args[])
  {
    Scanner in = new Scanner(System.in);
    String s = in.nextLine();
    boolean b = false;
    for(int i=0; i<s.length()-1; i++)
    {
      if(s.charAt(i) == s.charAt(i+1))
      {
        b = true;
      }
    }
    if(!b)
    {
      System.out.println("Good");
    }
    else
    {
      System.out.println("Bad");
    }
  }
} Main static public void main(String args[])
  {
    Scanner in = new Scanner(System.in);
    String s = in.nextLine();
    boolean b = false;
    for(int i=0; i<s.length()-1; i++)
    {
      if(s.charAt(i) == s.charAt(i+1))
      {
        b = true;
      }
    }
    if(!b)
    {
      System.out.println("Good");
    }
    else
    {
      System.out.println("Bad");
    }
  } main {
    Scanner in = new Scanner(System.in);
    String s = in.nextLine();
    boolean b = false;
    for(int i=0; i<s.length()-1; i++)
    {
      if(s.charAt(i) == s.charAt(i+1))
      {
        b = true;
      }
    }
    if(!b)
    {
      System.out.println("Good");
    }
    else
    {
      System.out.println("Bad");
    }
  } Scanner in = new Scanner(System.in); in new Scanner(System.in) String s = in.nextLine(); s in.nextLine() in.nextLine in boolean b = false; b false for(int i=0; i<s.length()-1; i++)
    {
      if(s.charAt(i) == s.charAt(i+1))
      {
        b = true;
      }
    } 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))
      {
        b = true;
      }
    } {
      if(s.charAt(i) == s.charAt(i+1))
      {
        b = true;
      }
    } if(s.charAt(i) == s.charAt(i+1))
      {
        b = true;
      } 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 {
        b = true;
      } b = true b true if(!b)
    {
      System.out.println("Good");
    }
    else
    {
      System.out.println("Bad");
    } !b b {
      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" String args[] args
import java.util.*;
class Main
{
  static public void main(String args[])
  {
    Scanner in = new Scanner(System.in);
    String s = in.nextLine();
    boolean b = false;
    for(int i=0; i<s.length()-1; i++)
    {
      if(s.charAt(i) == s.charAt(i+1))
      {
        b = true;
      }
    }
    if(!b)
    {
      System.out.println("Good");
    }
    else
    {
      System.out.println("Bad");
    }
  }
}