s = gets
arr = s.chars
flag = true
if arr[0] ==  arr[1] then flag = false
elsif arr[1] == arr[2] then flag = false
elsif arr[2] == arr[3] then flag  = false
end
if  flag == true then puts "Good"
else puts "Bad"
end