Problem:


Score : 100 points

Problem Statement

The door of Snuke's laboratory is locked with a security code.

The security code is a 4-digit number. We say the security code is hard to enter when it contains two consecutive digits that are the same.

You are given the current security code S. If S is hard to enter, print Bad; otherwise, print Good.

Constraints

S is a 4-character string consisting of digits.

Input

Input is given from Standard Input in the following format:

S

Output

If S is hard to enter, print Bad; otherwise, print Good.

Sample Input 1

3776

Sample Output 1

Bad

The second and third digits are the same, so 3776 is hard to enter.

Sample Input 2

8080

Sample Output 2

Good

There are no two consecutive digits that are the same, so 8080 is not hard to enter.

Sample Input 3

1333

Sample Output 3

Bad

Sample Input 4

0024

Sample Output 4

Bad



Sample input:
3776


Sample output:
Bad

Submission status: Wrong Answer

Solution code:
S = input()
ans = "Good"
for i in range(2):
  if S[i] == S[i+1]:
    ans = "Bad"
    break
print(ans)

Submission status: Wrong Answer

Solution code:
s = input()

ans = 'Bad'
for i in range(len(s)-1):
    if s[i] == s[i+1]:
        ans = 'Good'
        break
print(ans)

Submission status: Wrong Answer

Solution code:
s = input()

ans = 'Nad'
for i in range(len(s)-1):
    if s[i] == s[i+1]:
        ans = 'Good'
        break
print(ans)

Submission status: Wrong Answer

Solution code:
S = input()
pre = '_'
flg = True
for s in S:
  flg = flg and (s!=pre)
print('Good' if flg else 'Bad')

Submission status: Wrong Answer

Solution code:
s = input()

n = len(s) - 1
i = 1
while i != n:
    if s[i] == s[i - 1]:
        print('Bad')
        exit()
    i += 1
print('Good')

Submission status: Wrong Answer

Solution code:
s = input()

n = len(s) - 1
i = 1
while i != n:
    if s[i] == s[i - 1]:
        print('bad')
        exit()
    i += 1
print('Good')

Submission status: Wrong Answer

Solution code:
s = input()

n = len(s)
i = 1
while i != n:
    if s[i] == s[i - 1]:
        print('bad')
        exit()
    i += 1
print('Good')

Submission status: Wrong Answer

Solution code:
for a in range(1, 8 + 1):
    for b in range(1, 8 + 1):
        for c in range(1, 8 + 1):
            for d in range(1, 8 + 1):
                if a == b or b == c or c == d:
                    f = True

if f == True:
    print('Bad')
else:
    print('Good')

Submission status: Wrong Answer

Solution code:
a = range(1, 8 + 1)
b = range(1, 8 + 1)
c = range(1, 8 + 1)
d = range(1, 8 + 1)

if a == b or b == c or c == d:
    print('Bad')
else:
    print('Good')

Submission status: Wrong Answer

Solution code:
s=input()
if s[0]!=s[1] and s[1]!=s[2] and s[2]!=s[3]:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
S = str(input())
if S[0] == S[1] or S[1] == S[2] or S[2] == S[3]:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
a = input()
b = set(a)
if len(b) == len(a):
  print("Good")
else:
  print("Bad")

Submission status: Wrong Answer

Solution code:
number = input()
check = False
for i in range(len(number)-1):
    if i == len(number)-2:
        break
    elif number[i] == number[i+1]:
        check = True
if check == True:
    print("Bad")
else:
    print("Good")

Submission status: Wrong Answer

Solution code:
number = input()
check = False
for i in range(len(number)):
    if i == len(number)-2:
        break
    elif number[i] == number[i+1]:
        check = True
if check == True:
    print("Bad")
else:
    print("Good")

Submission status: Wrong Answer

Solution code:
a, b, c, d = map(int, input())

if a == b or b == c or c == d:
    print("Bad")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
S=input()
judge=0
for i in range(0,2):
    if S[i]==S[i+1]:
        judge+=1
if judge>=1:
    print("Bad")
else:
    print("Good")

Submission status: Wrong Answer

Solution code:

S=input()
l=set(S)
if len(l)==4:
    print('Good')
else:
    print('Bad')

Submission status: Wrong Answer

Solution code:

S=input()
l=set(S)
if len(l)==4:
    print('Bad')
else:
    print('Good')

Submission status: Wrong Answer

Solution code:
S = input()
for i in range(9):
    i = i +1
    hikaku = i*10+i
    #print(hikaku)
    if (str(hikaku) in S) == True:
        result = "Bad"
        break
    else:
        result = "Good"
print(result)

Submission status: Wrong Answer

Solution code:
S = input()
for i in range(3):
    if S[i] == S[i+1]:
        print('Bad')
    else:
        print('Good')

Submission status: Wrong Answer

Solution code:
S=input()
for i in range(len(S)-1):
    if S[i]==S[i+1]:
        print('Good')
        exit()
print('Bad')

Submission status: Wrong Answer

Solution code:
S=input()
for i in range(len(S)-1):
    if S[i]==S[i+1]:
        print('Good')
print('Bad')

Submission status: Wrong Answer

Solution code:

# ABC131
# A Security
S  = input()
sl = len(S)
for i in range(sl-1):
    if S[i] == S[i-1]:
        print('Bad')
        exit()
print('Good')

Submission status: Wrong Answer

Solution code:
s = input()
 
for i in range(3):
    if s[i] == s[i+1]:
        print('Bad')
        break
print('Good')

Submission status: Wrong Answer

Solution code:
a=input()
if(a[0]==a[1]):
    print("Bad")
elif(a[1]==a[2]):
    print("Bad")
elif(a[2]==a[3]):
    print("Bad")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
S = input()
if S[0] == S[1] or S[1] == S[2] or S[2] == S[3]:
  print("Bad")
else:
  print("Yes")

Submission status: Wrong Answer

Solution code:
S= str(input())
cou = 0
for i in range(len(S)-1):
  if(S[i]==S[i+1]):
    cou += 1
  break
if(cou>=1):
  print("Bad")
else:
  print("Good")

Submission status: Wrong Answer

Solution code:
S = input()
if S[0] != S[1]!= S[2] != S[3]:
  print("Bad")
else:
  print("Good")

Submission status: Wrong Answer

Solution code:
i=list(input())
print(i)
if(i[0]==i[1] or i[1]==i[2] or i[2]==i[3]):
    print("Bad")
else:
    print("Good")

Submission status: Wrong Answer

Solution code:
S = input()
print(len(S))
for i in range(len(S)-1):
  if S[i] == S[i+1]:
    print("Bad")
    exit()
print("Good")

Submission status: Wrong Answer

Solution code:
S=input()
for i in range(len(S)-1):
  if S[i]==S[i+1]:
    print('bad')
    exit()
print('good')

Submission status: Wrong Answer

Solution code:
S = input()
for i in range(len(S)):
    if S[i] == S[i-1]:
        print('Bad')
        exit(0)
print('Good')

Submission status: Wrong Answer

Solution code:

def main():
    s = input()
    cnt = 0
    for i in range(1, len(s)):
        if s[i-1] == s[i]:
            cnt += 1
    if cnt >= 2:
        print('Bad')
    else:
        print('Good')


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
s = input()
for i in range(3):
  if s[i] == s[i+1]:
    print("bad")
    exit()
print("Good")

Submission status: Wrong Answer

Solution code:

s = str(input().split())
i = 0 + 2
while True:
    print(i,' : ',s[i])
    if s[i] == s[i + 1]:
        print_ans = 'Bad'
        break
    else:
        print_ans = 'Good'
    i += 1
    if i == 3 + 2:
        break
    
print(print_ans)

Submission status: Wrong Answer

Solution code:

s = str(input().split())
i = 0
while True:
    if s[i] == s[i + 1]:
        print_ans = 'Bad'
        break
    else:
        print_ans = 'Good'
    i += 1
    if i == 3:
        break
    
print(print_ans)

Submission status: Wrong Answer

Solution code:
s = str(input().split())

i = 0
while True:
    i += 1
    if i == 4:
        break
    if s[i] == s[i +1]:
        print_ans = 'Bad'
        break
    else:
        print_ans = 'Good'

print(print_ans)

Submission status: Wrong Answer

Solution code:
s = str(input().split())
print(s)
i = 0
while True:
    i += 1
    if i == 4:
        break
    if s[i] == s[i +1]:
        print_ans = 'Bad'
        break
    else:
        print_ans = 'Good'

print(print_ans)

Submission status: Wrong Answer

Solution code:
s=input()
f = 0
for i in range(2):
    if(s[i] == s[i+1]):
        f = 1
        break
if f == 1:
    print("Bad")
else:
    print("Good")

Submission status: Wrong Answer

Solution code:
s = str(input())
for i in range(0, 4):
    if s[i - 1] == s[i]:
        print('Bad')
        exit()
print('Good')

Submission status: Wrong Answer

Solution code:
s = str(input())
for i in range(4):
    if s[i - 1] == s[i]:
        print('Bad')
        exit()
print('Good')

Submission status: Wrong Answer

Solution code:

n = str(input())

print('Good' if len(set(n))==4 else 'Bad')

Submission status: Wrong Answer

Solution code:
s=list(input())
for i in range(0,len(s)-1):
    if s[i]==s[i+1]:
        print('Bad')
        break
print('Good')

Submission status: Wrong Answer

Solution code:
s=list(input())
for i in range(0,len(s)-1):
    if s[i]==s[i+1]:
        print('Bad')
    else:
        print('Good')

Submission status: Wrong Answer

Solution code:
print('Bad' if len(set(list(input())))<4 else 'Good')

Submission status: Wrong Answer

Solution code:
S=input()

if S[0]==S[1] or S[1]==S[2] or S[2]==S[3]:
    print("bad")
else:
    print("good")

Submission status: Wrong Answer

Solution code:
a=list(input())
count=0

       
for i in range(4):
  if i==3:
    break
  if a[i]==a[i+1] and i==2:
    count+=2
if count>=2:
  print('Bad')
else:
  print('Good')

Submission status: Wrong Answer

Solution code:
a=list(input())
count=0

       
for i in range(4):
  if i==3:
    break
  if a[i]==a[i+1] and i==2:
    count+=1
if count>=2:
  print('Bad')
else:
  print('Good')

Submission status: Wrong Answer

Solution code:
S = input()

for i in range(3):
  if S[i] == S[i+1]:
    print("Bad")
    break
  else:
    pass
  
i+=1

if i == 3:
  print("Good")

Submission status: Wrong Answer

Solution code:
s=sorted(input())
for i in range(3):
    if s[i]==s[i+1]:
        print("Bad")
        exit()
print("Good")

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

s = input()
before = '0'
for i in s:
    if i == before:
        print('Bad')
        exit(0)

    before = i

print('Good')

Submission status: Wrong Answer

Solution code:
s = input()
l = len(s)
s = s + '0'
ans = 0

for i in range(l):
    for k in range(i+1,l+1) :
        if s[i] == s[k]:
            ans += 1

if ans == 0:
    print('Good')
if ans !=0:
    print('Bad')

Submission status: Wrong Answer

Solution code:
s = input()
l = len(s)
ans = 0

for i in range(l):
    for k in range(i,l) :
        if s[i] == s[k]:
            ans += 1

if ans == 0:
    print('Good')
if ans !=0:
    print('Bad')

Submission status: Wrong Answer

Solution code:
def main():
 s = sorted(input())
 if s[0] != s[1] and s[1] != s[2] and s[2] != s[3]:
     print('Good')
 else:
     print('Bad')
main()

Submission status: Wrong Answer

Solution code:
ss=input().strip()
flg=False
for i in range(1,len(ss)):
  if ss[i]==ss[i-1]:
    True
    
if flg==True:
  print("Bad")
else:
  print("Good")

Submission status: Wrong Answer

Solution code:
import collections

S = input()

c = collections.Counter(S)

d = len(c)

if d == 4:
    print("Good")

else:
    print("Bad")

Submission status: Wrong Answer

Solution code:
S=input()

if S[0]==S[1] or S[1]==S[2] or S[2]==[3]:
	print("Bad")
else:
	print("Good")

Submission status: Wrong Answer

Solution code:
s = input()
flg = True
for i in range(len(s)-1):
    s[i] == s[i+1]
    flg = False
    break
print('Good') if flg else print('Bad')

Submission status: Wrong Answer

Solution code:
s=input()

if(s[0]==s[1]) or(s[1]==s[2])or(s[2]==s[3]):
  print('Bad')
else:
  print('Yes')

Submission status: Wrong Answer

Solution code:
s=input()
if s[0]==s[1] or s[1]==s[2] or s[2]==s[3]:
  print("Good")
else:
  print("Bad")

Submission status: Wrong Answer

Solution code:
s=input()
for i in range(3):
    if s[i]==s[i+1]:
        print('Bad')
        exit()
print('Yes')

Submission status: Wrong Answer

Solution code:
S = list(map(int, input().split()))
S = set(S)

if len(S) == 4:
  print('Good')
else:
  print('Bad')

Submission status: Wrong Answer

Solution code:
s=list(input())
n=None
cnt=0
for i in s:
    if n==i:
        print('Bad')
        cnt+=1
        n=i
    else:
        n=i
if cnt==0:
    print('Good')

Submission status: Wrong Answer

Solution code:
n=list(map(int, input().split()))
 
for i in range(len(n)-1):
  if n[i]==n[i+1]:
    print('Bad')
    break
else:
  print('Good')

Submission status: Wrong Answer

Solution code:
n=list(map(int, input().split()))
 
for i in range(len(n)):
  if n[i]==n[i-1]:
    print('Bad')
    break
else:
  print('Good')

Submission status: Wrong Answer

Solution code:
S = input("Please enter password :")
flag =0
for i in range(len(S)-1):
    if S[i] == S[i+1]:
        flag =1
if flag == 1:
    print("bad")
else:
    print("good")

Submission status: Wrong Answer

Solution code:
code = list(input())
status = False
for x in range(1, len(code)):
  if code[x] == code[x-1]:
    print("Bad")
    status = True
if status == False:
  print("Good")

Submission status: Wrong Answer

Solution code:
S=input()
if S[0]==S[1] or S[1]==S[2] or S[2]==S[3]:
  print("Bad")
else:
  print("Yes")

Submission status: Wrong Answer

Solution code:
x = input()

y = x[0]
for i in x[1:]:
      if (y == i):
            print("Bad")
            break
      y = i
if (y == x[-1]):
      print("Good")

Submission status: Wrong Answer

Solution code:
S = input()
ans = 0
for i in range(2):
  if S[i] == S[i+1]:
    ans = 1
if ans == 0:
  print('Good')
else:
  print('Bad')

Submission status: Wrong Answer

Solution code:
S = input()
ans = 0
for i in range(2):
  if S[i] != S[i+1]:
    ans = 1
if ans == 0:
  print('Good')
else:
  print('Bad')

Submission status: Wrong Answer

Solution code:
S = input()
ans = 0
for i in range(3):
  if S[i] != S[i+1]:
    ans = 1
print('Good' if ans == 1 else 'Bad')

Submission status: Wrong Answer

Solution code:
S = str(input())

if all(S[i] != S[i-1] for i in range(3)):
    print("Good")
else:
    print("Bad")

Submission status: Wrong Answer

Solution code:
s = input()
print('Good' if all(s[i]==s[i+1] for i in range(3)) else 'Bad')

Submission status: Wrong Answer

Solution code:
S = list(input())
count = 0
for i in range(3):
  if S[i] == S[i+1]:
    count += 1
print("Yes" if count > 0 else "No")

Submission status: Wrong Answer

Solution code:
def main():
    N = list(input())
    if len(N) == len(set(N)):
        print("Good")
    else:
        print("Bad")


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
a = list(input())
print(a)
flag = 0
for i in range(3):
    if a[i] == a[i+1]:
        flag = 1
if flag == 1:
    print('Bad')
else:
    print('Good')

Submission status: Wrong Answer

Solution code:
S = list(input())
for i in range(0,3,1):
  if S[i]==S[i+1]:
    print("Bad")
    exit()
print("Yes")

Submission status: Wrong Answer

Solution code:
n=input()
print("Bad" if any(n[i]==n[i-1] for i in range(1,3)) else "Good")

Submission status: Wrong Answer

Solution code:
s=list()
s=input()
result=0
for i in range(4):
  if s[i]==s[i-1]:
    result=1

if result==0:
  print('Good')
else :
  print('Bad')

Submission status: Wrong Answer

Solution code:
s = str(input())


t = set([s[0], s[1], s[2], s[3]])

if len(t)<4:
    print('Bad')
else:
    print('Good')

Submission status: Wrong Answer

Solution code:
s = input()
if len(set(s)) == 4:
    print("Good")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
s = input()
if(s[0] == s[1] or s[1] == s[2] or s[2] == s[3]):
  print('Good')
else:
  print('Bad')

Submission status: Wrong Answer

Solution code:
s=input()

if s[0] == s[1] or s[1] == s[2] and s[2] == s[3]:
    print("Bad")
else:
    print("Good")

Submission status: Wrong Answer

Solution code:
a,b,c,d=input();print('GBoaodd'[a!=b!=c!=d::2])

Submission status: Wrong Answer

Solution code:
n=input()
for i in range(len(n)-1):
  if n[i]==n[i+1]:
    print('Bad')
    exit()
  else:
    print('Good')

Submission status: Wrong Answer

Solution code:
s=input()
n=''
result='Good'
for i in s:
    if s==n:
        result='Bad'
        break
    n=i
print(result)

Submission status: Wrong Answer

Solution code:
s=input()
n=''
result='Good'
for i in s:
    if s==i:
        result='Bad'
        break
    n=i
print(result)

Submission status: Wrong Answer

Solution code:
s=input()
a=[]
n=0
for i in s:
    a.append(i)
result='Good'
while n<=3:
    if a[n]==a[n-1]:
        result='Bad'
        break
    n+=1
print(result)

Submission status: Wrong Answer

Solution code:
s=input()
a=[]
n=0
for i in s:
    a.append(i)
result='Good'
while n<=3:
    if a[n]==a[n-1]:
        result='Bad'
    n+=1
print(result)

Submission status: Wrong Answer

Solution code:
S = input()
print('Bad' if '00' or '11' or '22' or '33' or '44' or '55' or '66' or '77' or '88' or '99' in S else 'Good')

Submission status: Wrong Answer

Solution code:
S = input()
s = list(S)
p = 1
for i in range(3):
    if s[i] == s[i+1]:
        p = 0
        print('Bad')
if p == 1:
    print('Good')

Submission status: Wrong Answer

Solution code:
n = input()
print('Yes' if n[0] != n[1] and n[1] != n[2] and n[2] != n[3] else 'No')

Submission status: Wrong Answer

Solution code:
s=input()
a=[]
for i in range(len(s)):
    a.append(s[i])
    if s[i] in a:
        print("Bad")
        exit()
print("Good")

Submission status: Wrong Answer

Solution code:
S = input()

if (S[0]==S[1]) or  (S[2]==S[1]) or  (S[2]==S[3]):
  print("Bad")
  exit()
  
print("Yes")

Submission status: Wrong Answer

Solution code:
S = input()

if (S[0]==S[1]) or  (S[2]==S[1]) or  (S[2]==S[3]):
  print("Bad")
  exit()
  
print("No")

Submission status: Wrong Answer

Solution code:
s = input()

if len(set(s)) == 4:
  print('Good')
else:
  print('Bad')

Submission status: Wrong Answer

Solution code:
def ABC_131_A():
    S = input()
    if S.count(S[0])>=2 or S.count(S[1])>=2 or S.count(S[2])>=2:
        print('Bad')
    else:
        print('Good')

if __name__ == '__main__':

    ABC_131_A()

Submission status: Wrong Answer

Solution code:
def main():
    S = sorted(input())
    if S[0] == S[1] or S[1] == S[2] or S[2] == S[3]:
        print("Bad")
    else:
        print("Good")


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
s = input()
res = "Good"
for i in range(1,len(s),1):
    if s[i-1] == s[i]:
        res = "BAD"
print(res)

Submission status: Wrong Answer

Solution code:
s = input()
res = "Good"
for i in range(1,len(s),1):
    if s[i-1] == s[i]:
        res = "BAD"

print(res)

Submission status: Wrong Answer

Solution code:
a,b,c,d = input()
print("Bad" if a==b or b==c or c==d else "Yes")

Submission status: Wrong Answer

Solution code:
S = str(input())
if S[0] == S[1] or S[1] == S[2] or S[2] == S[3]:
    print('Bud')
else:
    print('Good')

Submission status: Wrong Answer

Solution code:
s=input()
yn=0
for i in range(3):
    if s.count(s[i])>1:
        yn=1
        break
if yn==1:
    print("Bad")
else:
    print("Good")

Submission status: Wrong Answer

Solution code:
S = str(input())
for i in range(2):
    if S[i] == S[i+1]:
        print("Bad")
        exit()
print("Good")

Submission status: Wrong Answer

Solution code:
S = list(input())
for i in range(2):
    if S[i] == S[i+1]:
        print("Bad")
        exit()
print("Good")

Submission status: Wrong Answer

Solution code:
s = int(input())
s_o = 10
flag = "ok"
for i in range(s):
    if s_o == i:
        flag = "ng"
    s_o = i
if flag == "ng":
    print("Bad")
else:
    print("Good")

Submission status: Wrong Answer

Solution code:
s = int(input())
s_o = 10
flag = "ok"
for i in range(s):
    if s_o == i:
        flag = "ng"
if flag == "ng":
    print("Bad")
else:
    print("Good")

Submission status: Wrong Answer

Solution code:
a,b,c,d = input()

if a==b or a==c or a==d or b==c or b==d or c==d:
  print('Bad')
else:
  print('Good')

Submission status: Wrong Answer

Solution code:
s=input()
print('Good' if len(s)==len(set(s)) else 'Bad')

Submission status: Wrong Answer

Solution code:
S = input()
if S[0] == S[1]:
    print( 'Bad' )
elif S[1] == S[2] :
    print( 'Bad' )
elif S[2] == S[3] :
    print( 'Bad' )
else :
    print( 'Yes' )

Submission status: Wrong Answer

Solution code:
S = input()

if S[0] == S[1] or S[1] == S[2] or S[2] == S[3]:
    print("Bad")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
# ABC 131
S=str(input())
if ("11"or"22"or"33"or"44"or"55"or"66"or"77"or"88"or"99"or"00") in S:
    print("Bad")
else:
    print("Good")

Submission status: Wrong Answer

Solution code:
s = input()
s1 = set(s)
if len(s1) == 4:
    print('Good')
else:
    print('Bad')

Submission status: Wrong Answer

Solution code:
a=list(input())
for i in range(3):
  if a[i]==a[i+1]:
    print('Bad')
    break
  else:
    print('Good')
    break

Submission status: Wrong Answer

Solution code:
a=list(input())
for i in range(3):
  if a[i]==a[i+1]:
    print('Bad')
    break
  else:
    print('Good')

Submission status: Wrong Answer

Solution code:
# ABC131 A - Security
S = input()
rt = 'Good'
for x in range(len(S)-1):
    if S[x:x+1] == S[x+1:x+2]:
        rt = 'Bad'
    break
print(rt)

Submission status: Wrong Answer

Solution code:
N=input()

count=0
for i in range(-1,-5,-1):
  if N[i]==N[i+1]:
    count+=1
  else:
    count+=0
if count>=1:
  print("Bad")
else:
  print("Good")

Submission status: Wrong Answer

Solution code:
N=input()

count=0
for i in range(-1,-4,-1):
  if N[i]==N[i+1]:
    count+=1
  else:
    count+=0
if count>=1:
  print("Bad")
else:
  print("Good")

Submission status: Wrong Answer

Solution code:
s=list(input())
s.sort()
if s[0]==s[1] and s[2]==s[3] and s[1]!=s[2]:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
a, b, c, d=map(int,(input()))
l = [a, b, c, d]

if l.count(a)==l.count(b)==l.count(c)==l.count(d)==1:
    print("Good")
else:
    print("Bad")

Submission status: Wrong Answer

Solution code:
#--Security

code = list(input())

if(code[0] == code[1]):
  print("Bad")
elif(code[1] == code[2]):
  print("Bad")
elif(code[2] == code[3]):
  print("Bad")
else:
  print("Yes")

Submission status: Wrong Answer

Solution code:
S = [str(x) for x in input()]
cnt = 0
 
for i in range(0,2):
    if S[i] == S[i+1]:
        cnt += 1
 
if cnt >= 1:
    print("Bad")
else:
    print("Good")

Submission status: Wrong Answer

Solution code:
S = [int(x) for x in input()]
cnt = 0

for i in range(0,2):
    if S[i] == S[i+1]:
        cnt += 1

if cnt >= 1:
    print("Bad")
else:
    print("Good")

Submission status: Wrong Answer

Solution code:
S = [int(x) for x in input()]
cnt = 0

for i in range(2):
    if S[i] == S[i+1]:
        cnt += 1

if cnt >= 1:
    print("Bad")
else:
    print("Good")

Submission status: Wrong Answer

Solution code:
S = input()
A = 'Good'
for i in range(2):
    if S[i] == S[i+1]:
        A = 'Bad'
        
print(A)

Submission status: Wrong Answer

Solution code:
a, b, c, d = input()
count = 0
if a == b or a == c or a == d or b == c or b == d or c == d:
  count += 1

if count == 1:
  print("Bad")
else:
  print("Good")

Submission status: Wrong Answer

Solution code:
import collections
s = str(input())
l = []
for i in range(0,4):
  l.append(s[i])
  i += 1
c = collections.Counter(l)
if len(c) == 4:
  print('Good')
else:
  print('Bad')

Submission status: Wrong Answer

Solution code:
import collections
s = str(input())
l = []
for i in range(0,4):
  l.append(s[i])
  i += 1
c = collections.Counter(l)
if len(c) == 4:
  print('Good')
else:
  print('Bad')

Submission status: Wrong Answer

Solution code:
S = input()
for i in range(len(S)-1):
  if S[i] == S[i+1]:
    print("Bad")
    exit()
  else:
    print("Good")
    exit()

Submission status: Wrong Answer

Solution code:
a = input()

print('Good' if a[i+1] == a[i] else 'Bad' for i in range(len(a)))

Submission status: Wrong Answer

Solution code:
a = input()
flag = False

for i in range(0, 3):
    if a[i] == a[i+1]:
        print("Bad")
        flag = True

if not flag:
    print("Good")

Submission status: Wrong Answer

Solution code:
s=input()
print("Good" if any([s[i]!=s[i+1] for i in range(len(s)-1)]) else "Bad")

Submission status: Wrong Answer

Solution code:
x = input()
f = 0
for i in range(len(x)-1):
  if x[i] == x[i+1]:
    print("Bad")
    f = 1
if f == 0:
    print("Good")

Submission status: Wrong Answer

Solution code:
S = list(input())
print(S)
if S[0]==S[1] or S[1]==S[2] or S[2]==S[3]:
    print('Bad')
else:
    print('Good')

Submission status: Wrong Answer

Solution code:
s=input()
ans=''
for i in range(2):
    if s[i]==s[i+1]:
        ans='Bad'
        break
    
    else:
        ans='Good'
print(ans)

Submission status: Wrong Answer

Solution code:
S=input()

if(S[0]==[1] or S[1]==S[2] or S[2]==S[3]):
    print("Bad")
else:
    print("Good")

Submission status: Wrong Answer

Solution code:
s = list(map(int, input()))
for i in range(1,4):
  if s[i]==s[i-1]:
    print('Bad')
    exit()
print('Yes')

Submission status: Wrong Answer

Solution code:
s = list(input())
s = sorted(s)
if s[0] != s[1] and s[1] != s[2] and s[2] != s[3]:
     print('Good')
else:
     print('Bad')

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline

def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

s=input()
count=0
for i in range(3):
    #print(s[i:i+1])
    if s[i:i+1]==s[i+1:i+2]:
        count+=1
if count>0:
    print("bad")
else:
    print("good")

Submission status: Wrong Answer

Solution code:
bad = ['11','22','33','44','55','66','77','88','99']
s = input()
print('Bad' if any(x in s for x in bad) else 'Good')

Submission status: Wrong Answer

Solution code:
s = list(input())

if len(set(s)) < 4 :
    print("Bad")
else :
    print("Good")

Submission status: Wrong Answer

Solution code:
s=list(input())
n=len(s)
if len(set(s))<n:
  print("Bad")
else:
  print("Good")

Submission status: Wrong Answer

Solution code:
A=list(map(int,input()))
if (str(A[0])+str(A[1]))==(str(A[2])+str(A[3])):
    print("Good")
else:
    print("Bad")

Submission status: Wrong Answer

Solution code:
A=list(map(int,input()))
if (str(A[0])+str(A[1]))==(str(A[2])+str(A[3])):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
def hasSequenceElement(password):
  password = str(password)
  length = len(password)
  for i in range(length - 1):
    if password[i] == password[i + 1]:
      return True
  return False
    
password = 5456

if hasSequenceElement(password):
  print('Bad')
else:
  print('Good')

Submission status: Wrong Answer

Solution code:
s = input()
if len([i for i in range(len(s)-1) if s[i]==s[i+1]]) == len(s)-1:
    print('Good')
else:
    print('Bad')

Submission status: Wrong Answer

Solution code:
s = input()
if len([i for i in range(len(s)-1) if s[i]==s[i+1]]) == len(s):
    print('Good')
else:
    print('Bad')

Submission status: Wrong Answer

Solution code:
s=input()
if len(s)==len(set(s)):
    print('Good')
else:
    print('Bad')

Submission status: Wrong Answer

Solution code:
s = input()
for i in range(4):
    if s[i] == s[i-1]:
        print('Bad')
        break
    elif i == 3:
        print('Good')
    else:
        continue

Submission status: Wrong Answer

Solution code:
S = list(input())
for i in range(len(S)-1):
  if int(S[i])-int(S[i+1]) == 0:
    print('Bat')
    exit()
print('Good')

Submission status: Wrong Answer

Solution code:
s = input()

ans = 'Good' if s[0] == s[1] or s[1] == s[2] or s[2] == s[3] else 'Bad'
print(ans)

Submission status: Wrong Answer

Solution code:
s=input()
for i in range(0,len(s)-1):
  if s[i]==s[i+1]:print('Bad')
else:print('Good')

Submission status: Wrong Answer

Solution code:
s=input()
for i in range(0,len(s)-1):
  if s[i]==s[i+1]:print('Bad')
  else:print('Good')

Submission status: Wrong Answer

Solution code:
import sys
import os

ii = lambda: int(sys.stdin.buffer.readline().rstrip())
il = lambda: list(map(int, sys.stdin.buffer.readline().split()))

iss = lambda: sys.stdin.buffer.readline().decode().rstrip()
isn = lambda n: [sys.stdin.buffer.readline().decode().rstrip() for _ in range(n)]


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

    A, B, C, D = list(iss())
    print('Bad' if A == B or A == C or A == D or B == C or B == D or C == D else 'Good')


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:

S=input()
for i in range(len(S)-1):
  if S[i]==S[i+1]:
    flag=1
  else:
    flag=0

if flag==0:
  print("Good")
else:
  print("Bad")

Submission status: Wrong Answer

Solution code:

S=input()
for i in range(len(S)-2):
  if S[i]==S[i+1]:
    flag=1
  else:
    flag=0

if flag==0:
  print("Good")
else:
  print("Bad")

Submission status: Wrong Answer

Solution code:
S=input()
for i in range(3):
    if S[i]==S[i+1]:
        print('Bad')
else:
    print('Good')

Submission status: Wrong Answer

Solution code:
if len(list(set(list(input())))) == 4:
  print("Good")
else:
  print("Bad")

Submission status: Wrong Answer

Solution code:
n = list(map(int, list(input())))
i = -1
ans = "Bad"
for i1 in n:
    if i == i1:
        ans = "Good"
        break
    else:
        i = i1 + 0
print(ans)

Submission status: Wrong Answer

Solution code:
s = str(input())
if s[0] == s[2] and s[1] == s[3] :
    print('Good')
else :
    print('Bad')

Submission status: Wrong Answer

Solution code:
a = input()
for i in range(3):
    if a[i] == a[i+1]:
        print("Bad")
        break
print("Good")

Submission status: Wrong Answer

Solution code:
S = list(input())
sa = set(S)
if len(sa) == 4:
    print('Good')
else:
    print('Bad')

Submission status: Wrong Answer

Solution code:
s=list(input())
ss=list(set(s))
print('Good' if len(s)==len(ss) else 'Bad')

Submission status: Wrong Answer

Solution code:
S = input()
num = S[0]
flag = 0
for i in range(1,len(S)):
  if num==S[i]:
    print("Bad")
    flag=1
    break
if flag==0:
  print("Good")

Submission status: Wrong Answer

Solution code:
s = input()
if s[0]!=s[1] and s[1]!=s[2] and s[2]!=s[3]:
  print("Bad")
else:
  print('Good')

Submission status: Wrong Answer

Solution code:
n = list(input())
ans = "Good"
for i in range(len(n)):
    if n[i-1] == n[i]:
        ans = "Bad"
    else:
        pass
print(ans)

Submission status: Wrong Answer

Solution code:
n = list(input())
ans = "Good"
for i in range(len(n)):
    if n[i-1] ==n[i]:
        ans = "Bad"
    else:
        pass
print(ans)

Submission status: Wrong Answer

Solution code:
s=input()
if s[0]==s[1] or s[1]==s[2] or s[2]==s[3]:print("Bad")
else:print("good")

Submission status: Wrong Answer

Solution code:
n = int(input())
ans = len(set(str(n)))
if ans == 4:
  print('Good')
else:
  print('Bad')

Submission status: Wrong Answer

Solution code:
a=list(input())
for i in range(len(a)-1):
	if a[i]==a[i+1]:
		print("Good")
		break
else:print("Bad")

Submission status: Wrong Answer

Solution code:
a=list(input())
for i in range(len(a)-1):
	if a[i]==a[i+1]:
		print("Good")
	else:print("Bad")

Submission status: Wrong Answer

Solution code:
s = len(set(input()))
if s != 4:
    print("Bad")
else:
    print("Good")

Submission status: Wrong Answer

Solution code:
S=input()
for i in range(3):
  if S[i]==S[i+1]:
    print("Bad")
    break
  else:
    print("Good")

Submission status: Wrong Answer

Solution code:
s = list(str(input()))

if s[0] == s[1] == s[2] == s[3]:
    print('Bad')
else:
    print('Good')

Submission status: Wrong Answer

Solution code:
S=input()
tmp=10
ans='Yes'
for s in S:
    if s == tmp: ans='Bad'; break
    else: tmp=s
print(ans)

Submission status: Wrong Answer

Solution code:
s=input()
S=set(list(s))
print('Good' if len(S) == len(s) else 'Bad')

Submission status: Wrong Answer

Solution code:
s = input()
if set(s) != 4:
    ans = 'Bad'
else:
    ans = 'Good'
print(ans)