ZhenlongDai/ACPR huggingface dataset:
Problem: p02993
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = list(map(int, input().split()))

prev = S[0]
ans = 'Good'

for i in range(1, len(S)):
  if S[i] == prev:
    ans = 'Bad'
  
  prev = S[i]
  
print(ans)

Failing test case input:
5552

Expected output:
Bad


Actual output:
Good


Fixed submission (verdict: Accepted):
S = list(input())

prev = S[0]
ans = 'Good'

for i in range(1, len(S)):
  if S[i] == prev:
    ans = 'Bad'
  
  prev = S[i]
  
print(ans)

Problem: p02993
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
if max([len(set(s[i:i+2])) for i in range(len(s)-1)]) == 2:
    print('Bad')
else:
    print('Good')


Failing test case input:
6502

Expected output:
Good


Actual output:
Bad


Fixed submission (verdict: Accepted):
s = input()
if min([len(set(s[i:i+2])) for i in range(len(s)-1)]) == 1:
    print('Bad')
else:
    print('Good')

Problem: p02993
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
num = 0
for i in range(len(s)):
        if s[i] == s[i-1]:
                num = 1
print("Good") if num == 0 else print("Bad")

Failing test case input:
29052

Expected output:
Good


Actual output:
Bad


Fixed submission (verdict: Accepted):
s = input()
num = 0
for i in range(len(s)-1):
        if s[i] == s[i+1]:
                num = 1
print("Good") if num == 0 else print("Bad")

Problem: p02993
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
line = input()

chars = list(map(int, line))

result = 0

for char_i in range(len(chars)):
  pre_char = chars[char_i-1]
  char = chars[char_i]
  
  if char == pre_char:
    result = 1
  else:
    continue
    
if result == 0:
  print("Good")
else:
  print("Bad")
  



Failing test case input:
2472

Expected output:
Good


Actual output:
Bad


Fixed submission (verdict: Accepted):
line = input()

chars = list(map(int, line))

result = 0

for char_i in range(1, len(chars)):
  pre_char = chars[char_i-1]
  char = chars[char_i]
  
  if char == pre_char:
    result = 1
    
if result == 0:
  print("Good")
else:
  print("Bad")

Problem: p02993
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = str(input())
if S[0] == S[1] or S[1] == S[2] or S[2] == S[3]:
    print('Yes')
else:
    print('No')

Failing test case input:
22385

Expected output:
Bad


Actual output:
Yes


Fixed submission (verdict: Accepted):
S = str(input())
if S[0] == S[1] or S[1] == S[2] or S[2] == S[3]:
    print('Bad')
else:
    print('Good')

Problem: p02993
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = list(input())
flag = False
for i in range(len(S)-1):
    if (S[i] == S[i+1]):
        flag = True
    if (flag == True):
        break

if (flag == True):
    print("bad")

else:
    print("good")

Failing test case input:
1344

Expected output:
Bad


Actual output:
bad


Fixed submission (verdict: Accepted):
S = list(input())
flag = False
for i in range(len(S)-1):
    if (S[i] == S[i+1]):
        flag = True
    if (flag == True):
        break

if (flag == True):
    print("Bad")

else:
    print("Good")
Problem: p02993
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
number=input()

count=0

for n in range(0,2):
    if number[n]==number[n+1]:
        count=1
        print('Bad')
        break
if count!=1:
    print('Good')

Failing test case input:
10665

Expected output:
Bad


Actual output:
Good


Fixed submission (verdict: Accepted):
import sys

number=input()

for n in range(3):
    if number[n]==number[n+1]:
        print('Bad')
        sys.exit()
print('Good')

Problem: p02993
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

def main():
    S = int(input())
    l = [int(x) for x in list(str(S))]
    
    t = l[0]
    for i in range(len(l)):
        if i != 0:
            t = l[i-1]
            if t == l[i]:
                print('Bad')
                return
    print('Good')


if __name__ == '__main__':
    main()

Failing test case input:
0024

Expected output:
Bad

Actual output:
Good


Fixed submission (verdict: Accepted):

def main():
    S = list(str(input()))
    
    for i in range(len(S)):
        if i == 0:
            t = int(S[0])
            continue
        else:
            t = int(S[i-1])
            
            if t == int(S[i]):
                print('Bad')
                return
    print('Good')


if __name__ == '__main__':
    main()

Problem: p02993
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = str(input())
flag = 0

for i in range(0,3,1):
  if int(s[i:i+2]) % 11 == 0:
    flag = 1

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


Failing test case input:
2220

Expected output:
Bad


Actual output:
Good


Fixed submission (verdict: Accepted):
s = str(input())
flag = 0

for i in range(0,3,1):
  if int(s[i:i+2]) % 11 == 0:
    flag = 1

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

Problem: p02993
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S=input()
if S[0]==S[1] or S[1]==S[2] or S[2]==S[3]:
  print("bad")
 
else:
  print("good")


Failing test case input:
2887

Expected output:
Bad


Actual output:
bad


Fixed submission (verdict: Accepted):
S=input()
if S[0]==S[1] or S[1]==S[2] or S[2]==S[3]:
  print("Bad")
 
else:
  print("Good")

Problem: p02993
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c = input()
num = list(c)

if num[0] == num[1]:
    print('bad')
elif num[1] == num[2]:
    print('bad')
elif num[2] == num[3]:
    print('bad')
else:
    print('good')

Failing test case input:
25859

Expected output:
Good


Actual output:
good


Fixed submission (verdict: Accepted):
c = input()
num = list(c)

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

Problem: p02993
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()
r="good"
for i in range(len(s)-1):
  if s[i]==s[i+1]:
    r="bad"
    break
print(r)

Failing test case input:
7360

Expected output:
Good


Actual output:
good


Fixed submission (verdict: Accepted):
s=input()
r="Good"
for i in range(len(s)-1):
  if s[i]==s[i+1]:
    r="Bad"
    break
print(r)
Problem: p02993
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S=input()

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

Failing test case input:
1344

Expected output:
Bad


Actual output:
Good


Fixed submission (verdict: Accepted):
S=input()

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

Problem: p02993
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
in_ = input()
for i in range(0,len(in_)-1):
  if in_[i] == in_[i+1]:
    print('Bad')
  else:
    print('Good')

Failing test case input:
10665

Expected output:
Bad


Actual output:
Good
Good
Bad
Good


Fixed submission (verdict: Accepted):
in_ = input()
is_ok = "Good"
for i in range(0,len(in_)-1):
  if in_[i] == in_[i+1]:
    is_ok = "Bad"
print(is_ok)

Problem: p02993
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
y = input()
a =  [int(a) for a in list(str(y))]
if a[0] == a[1] or a[1] == a[2] or a[2] == a[3]:
    print ('bad')
else:
    print('good')


Failing test case input:
7694

Expected output:
Good


Actual output:
good


Fixed submission (verdict: Accepted):
y = input()
a =  [int(a) for a in list(str(y))]
if a[0] == a[1] or a[1] == a[2] or a[2] == a[3]:
    print ('Bad')
else:
    print('Good')

Problem: p02993
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
input_line = input()
last_c = ''
bad = False
for i in range(len(input_line)):
  c = input_line[i]
  if last_c == c:
    print('Bad')
    bad = true
    break
if not bad:
  print('Good')
  

Failing test case input:
7113

Expected output:
Bad


Actual output:
Good


Fixed submission (verdict: Accepted):
input_line = input()
last_c = ''
bad = False
for i in range(len(input_line)):
  c = input_line[i]
  if last_c == c:
    print('Bad')
    bad = True
    break
  last_c = c
if not bad:
  print('Good')

Problem: p02993
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()

ans = s[0]
t = 'Good'
for i in s[:1]:
    if ans == i:
        t = 'Bad'
        break

print(t)

Failing test case input:
3050

Expected output:
Good


Actual output:
Bad


Fixed submission (verdict: Accepted):
s = input()

ans = s[0]
t = 'Good'
for i in s[1:]:
    if ans == i:
        t = 'Bad'
        break
    else:
        ans = i
print(t)

Problem: p02993
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S=int(input())
n=1
while n>0.001:
    if int(S/1000*n)==int(S-1000*n)/(100*n):
        print("Bad")
        break
    else:
        n=n/10
else:
    print("Good")

Failing test case input:
1229

Expected output:
Bad


Actual output:
Good


Fixed submission (verdict: Accepted):
S=int(input())
n=1
while n>0.001:
    if S
        print("Bad")
        break
    else:
        S=S-(1000*n)*(S
        n=n/10
else:
    print("Good")

Problem: p02993
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = list(input())
S.sort()
if S[0]!=S[1] and S[1]!=S[2] and S[2]!=S[3]:
    print("Good")
else:
    print("Bad")

Failing test case input:
1979

Expected output:
Good


Actual output:
Bad


Fixed submission (verdict: Accepted):
S = list(input())
if S[0]==S[1] or S[1]==S[2] or S[2]==S[3]:
    print("Bad")
else:
    print("Good")
Problem: p02993
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S=input()
for i in range(len(S)-1):
  if S[i]==S[i+1]:
    print('bad')
    exit()
print('good')

Failing test case input:
9217

Expected output:
Good


Actual output:
good


Fixed submission (verdict: Accepted):
S=input()
for i in range(len(S)-1):
  if S[i]==S[i+1]:
    print('Bad')
    exit()
print('Good')

Problem: p02993
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
if s[0] != s[1] and s[1] != s[2]:
    print("Good")
else:
    print("Bad")

Failing test case input:
10665

Expected output:
Bad


Actual output:
Good


Fixed submission (verdict: Accepted):
s = input()
if s[0] != s[1] and s[1] != s[2] and s[2]!=s[3]:
    print("Good")
else:
    print("Bad")

Problem: p02993
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a= list(map(int,input().split()))
flg=0
for i in range(len(a)-1):
    if(a[i]==a[i+1]):
        flg =1
        break
if(flg==1):
    print("Bad")
elif(flg==0):
    print("Good")


Failing test case input:
12253

Expected output:
Bad


Actual output:
Good


Fixed submission (verdict: Accepted):

a= list(input())
flg=0
for i in range(len(a)-1):
    if(a[i]==a[i+1]):
        flg =1
        break
if(flg==1):
    print("Bad")
elif(flg==0):
    print("Good")

Problem: p02993
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
import re
s = input()
pattern = r"\d{2,}"
if(re.match(pattern, s)):
  print("Bad")
else:
  print("Good")

Failing test case input:
3050

Expected output:
Good


Actual output:
Bad


Fixed submission (verdict: Accepted):
import re
s = input()
pattern = r"(00|11|22|33|44|55|66|77|88|99)"
if(re.search(pattern, s)):
	print("Bad")
else:
	print("Good")

Problem: p02993
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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")

Failing test case input:
22385

Expected output:
Bad


Actual output:
Good


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

Problem: p02993
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
i=list(input())
o=0
for j in range(3):
    if int(i[j])==int(i[j+1]):
        print('Bad')
        o+=1
        break
    else:
         None
if o==1:
    print('Good')



Failing test case input:
25859

Expected output:
Good


Actual output:

Fixed submission (verdict: Accepted):
i=list(input())
o=0
for j in range(3):
  if int(i[j])==int(i[j+1]):
    print('Bad')
    o+=1
    break
  else:
    None
if o==0:
  print('Good')
else:
  None
Problem: p02993
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import re

security_code = input()
regex = r'(.)\1'
result = re.match(regex, security_code)

if result is None:
  print('Good')
else:
  print('Bad')

Failing test case input:
3116

Expected output:
Bad


Actual output:
Good


Fixed submission (verdict: Accepted):
import re

security_code = input()
regex = r'.*(.)\1.*'
result = re.match(regex, security_code)

if result is None:
  print('Good')
else:
  print('Bad')

Problem: p02993
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S=input()
for i in range(2):
  if S[i]==S[i+1]:
    print("Bad")
    exit()
print("Good")

Failing test case input:
2155

Expected output:
Bad


Actual output:
Good


Fixed submission (verdict: Accepted):
S=input()
for i in range(3):
  if S[i]==S[i+1]:
    print("Bad")
    exit()
print("Good")

Problem: p02993
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

s = input()

t= "Good";
for i in range(0,len(s)):
    if s.find(s[i],i+1,len(s)-1) == i+1:
        t="Bad"
        
print(t)


Failing test case input:
8244

Expected output:
Bad


Actual output:
Good


Fixed submission (verdict: Accepted):

s = input()
t= "Good"

for i in range(0,len(s)):
    if s.find(s[i],i+1) == i+1:
        t="Bad"
print(t)

Problem: p02993
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
line = input()

chars = list(map(int, line))

result = 0

for char_i in range(len(chars)):
  pre_char = chars[char_i-1]
  char = chars[char_i]
  
  if char == pre_char:
    result = 1
    
if result == 0:
  print("Good")
else:
  print("Bad")
  



Failing test case input:
12101

Expected output:
Good


Actual output:
Bad


Fixed submission (verdict: Accepted):
line = input()

chars = list(map(int, line))

result = 0

for char_i in range(1, len(chars)):
  pre_char = chars[char_i-1]
  char = chars[char_i]
  
  if char == pre_char:
    result = 1
    
if result == 0:
  print("Good")
else:
  print("Bad")

Problem: p02993
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input('Security Code: ')

flg = False
for i in range(3):
  flg = flg or (int(s[i:i+2]) % 11) == 0

if flg:
  print('Bad')
else:
  print('Good')

Failing test case input:
36905

Expected output:
Good


Actual output:
Security Code: Good


Fixed submission (verdict: Accepted):
s = input()

flg = False
for i in range(3):
  flg = flg or s[i] == s[i+1]

if flg:
  print('Bad')
else:
  print('Good')

Problem: p02993
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import re

security_code = input()
regex = r'(.)\1'
result = re.match(regex, security_code)

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

Failing test case input:
5207

Expected output:
Good


Actual output:
Bad


Fixed submission (verdict: Accepted):
import re

security_code = input()
regex = r'.*(.)\1.*'
result = re.match(regex, security_code)

if result is None:
  print('Good')
else:
  print('Bad')
Problem: p02993
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
OK_f = 0
S=list(input())
for i in range(len(S)):
    if S[i] == S[i-1]:
        OK_f = 1;
        break
if OK_f == 0:
    print("Good")
else:
    print("Bad")

Failing test case input:
6416

Expected output:
Good


Actual output:
Bad


Fixed submission (verdict: Accepted):
OK_f = 0
S=list(input())
for i in range(len(S)):
    if i>0 and S[i] == S[i-1]:
        OK_f = 1;
        break
if OK_f == 0:
    print("Good")
else:
    print("Bad")

Problem: p02993
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
prev = ''
b = True
for i in s:
    if i == prev:
        print("Bad")
        b = False
    prev = i
    
if b:
    print("Good")

Failing test case input:
5552

Expected output:
Bad


Actual output:
Bad
Bad


Fixed submission (verdict: Accepted):
s = input()
prev = ''
b = True
found = False
for i in s:
    if not found:
        if i == prev:
            print("Bad")
            b = False
            found = True
    prev = i
    
if b:
    print("Good")

Problem: p02993
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
tmp = ''

for c in s:
    if tmp==c:
        print('Bad')
        exit()
    else:
        tmp = c

print('Yes')

Failing test case input:
3734

Expected output:
Good


Actual output:
Yes


Fixed submission (verdict: Accepted):
s = input()
tmp = ''

for c in s:
    if tmp==c:
        print('Bad')
        exit()
    else:
        tmp = c

print('Good')

Problem: p02993
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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')

Failing test case input:
21563

Expected output:
Good


Actual output:
['2', '1', '5', '6', '3']
Good


Fixed submission (verdict: Accepted):
S = list(input())
if S[0]==S[1] or S[1]==S[2] or S[2]==S[3]:
    print('Bad')
else:
    print('Good')

Problem: p02993
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
S = input()
if S[0] == S[1] or S[1] == S[2] or S[2] == S[3]:
  print("Bad")
else:
  print("Yes")

Failing test case input:
8080

Expected output:
Good

Actual output:
Yes


Fixed submission (verdict: Accepted):
S = input()
if S[0] == S[1] or S[1] == S[2] or S[2] == S[3]:
  print("Bad")
else:
  print("Good")

Problem: p02993
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S=input()
for i in range(2):
    if S[i]==S[i+1]:
        print('Bad')
        break
else:
    print('Good')

Failing test case input:
1722

Expected output:
Bad


Actual output:
Good


Fixed submission (verdict: Accepted):
S=input()
for i in range(3):
    if S[i]==S[i+1]:
        print('Bad')
        break
else:
  print('Good')
Problem: p02993
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = input()

form=""
for s in N:
    if form == s:
        print("Bad")
        break
    else:
        pass
    form = s
print("Good")


Failing test case input:
5552

Expected output:
Bad


Actual output:
Bad
Good


Fixed submission (verdict: Accepted):
import sys
N = input()

form=""
for s in N:
    if form == s:
        print("Bad")
        sys.exit()
    else:
        pass
    form = s
print("Good")

Problem: p02993
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = list(input())
count = 0
bad = False

for i in range(len(S)-1):
    if S[i]==S[i+1]:
        print("Bad")
        bad = True
        break


if bad==False:
     print("Goood")


Failing test case input:
13296

Expected output:
Good


Actual output:
Goood


Fixed submission (verdict: Accepted):

S = list(input())
count = 0
bad = False

for i in range(len(S)-1):
    if S[i]==S[i+1]:
        bad = True




if bad:
    print("Bad")
else:
    print("Good")

Problem: p02993
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x = input()
x = str(x)
f = True

for i in range(1,3):
  if(x[i-1] == x[i]):
    f = False
    break
   
if f:
  print("Good")
else:
  print("Bad")

Failing test case input:
8244

Expected output:
Bad


Actual output:
Good


Fixed submission (verdict: Accepted):
x = input()
x = str(x)
f = True

for i in range(1,4):
  if(x[i-1] == x[i]):
    f = False
    break
   
if f:
  print("Good")
else:
  print("Bad")

Problem: p02993
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
if s[0]!=s[1] and s[1]!=s[2] and s[2]!=s[3]:
  print("Bad")
else:
  print('Good')

Failing test case input:
7113

Expected output:
Bad


Actual output:
Good


Fixed submission (verdict: Accepted):
s = input()
if s[0]!=s[1] and s[1]!=s[2] and s[2]!=s[3]:
  print("Good")
else:
  print('Bad')

Problem: p02993
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
l = []
for i in list(input()):
  if i in l:
    print('Bad')
    exit()
  l.append(i)
print('Good')

Failing test case input:
3050

Expected output:
Good


Actual output:
Bad


Fixed submission (verdict: Accepted):
pre = 0
for i in list(input()):
    if i == pre:
        print("Bad")
        exit()
    pre = i
print("Good")

Problem: p02993
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()

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

Failing test case input:
47440

Expected output:
Bad


Actual output:
sad


Fixed submission (verdict: Accepted):
S = input()

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

Problem: p02993
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
S = list(str(v) for v in input())

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


Failing test case input:
2764

Expected output:
Good


Actual output:
Yes


Fixed submission (verdict: Accepted):
S = list(int(v) for v in input())

if S[0] == S[1] or S[1] == S[2] or S[2] == S[3]:
    print('Bad')
else:
    print('Good')
Problem: p02993
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()

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


Failing test case input:
7360

Expected output:
Good


Actual output:
Bad


Fixed submission (verdict: Accepted):
s = input()

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

Problem: p02993
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()
n=''
result='Good'
for i in s:
    if s==n:
        result='Bad'
        break
    n=i
print(result)

Failing test case input:
4661

Expected output:
Bad


Actual output:
Good


Fixed submission (verdict: Accepted):
s=input()
for i in range(3):
    if s[i]==s[i+1]:
        print('Bad')
        break
else:
    print('Good')

Problem: p02993
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()
flag = True

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

if flag:
    print('good')
else:
    print('bad')

Failing test case input:
6416

Expected output:
Good


Actual output:
good


Fixed submission (verdict: Accepted):
S = input()
flag = True

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

if flag:
    print('Good')
else:
    print('Bad')

Problem: p02993
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys

def def1(s):
    
    if s[0] == s[1]:
        return True
    
    if len(s) == 2:
        return False
    
    return def1(s[1:])

def main():
    input = sys.stdin.readline
    S = input()
    
    print('bad' if def1(S) else 'good')

if __name__ == '__main__':
    main()

Failing test case input:
1430

Expected output:
Good


Actual output:
good


Fixed submission (verdict: Accepted):
import sys

def def1(s):
    
    if s[0] == s[1]:
        return True
    
    if len(s) == 2:
        return False
    
    return def1(s[1:])

def main():
    input = sys.stdin.readline
    S = input()
    
    print('Bad' if def1(S) else 'Good')

if __name__ == '__main__':
    main()
Problem: p03176
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
def f(x):
    s=0
    while x>0:
        s=max(s,t[x])
        x-=x&-x
    return s
def g(x,y):
    while x<n+1:
        t[x]=max(y,t[x])
        x+=x&-x
t=[0]*(n+1)
h=list(map(int,input().split()))
a=list(map(int,input().split()))
for i in range(n):
    g(h[i],f(h[i]-1)+a[i])
    print(t)
print(max(t))

Failing test case input:
4
4 1 4 2
23 12 2 42

Expected output:
54


Actual output:
[0, 0, 0, 0, 23]
[0, 12, 12, 0, 23]
[0, 12, 12, 0, 23]
[0, 12, 54, 0, 54]
54


Fixed submission (verdict: Accepted):
n=int(input())
def f(x):
    s=0
    while x>0:
        s=max(s,t[x])
        x-=x&-x
    return s
def g(x,y):
    while x<n+1:
        t[x]=max(y,t[x])
        x+=x&-x
t=[0]*(n+1)
h=list(map(int,input().split()))
a=list(map(int,input().split()))
for i in range(n):
    g(h[i],f(h[i]-1)+a[i])
print(max(t))
Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
s=set(map(str,input().split()))
n=len(s)
if s==3:
  print("Three")
if s==4:
  print("Four")

Failing test case input:
6
H V Y O Y V

Expected output:
Four


Actual output:

Fixed submission (verdict: Accepted):
n=int(input())
s=set(map(str,input().split()))
n=len(s)
if n==3:
  print("Three")
if n==4:
  print("Four")

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):


input()

print("Four" if len(set(input().split())) == 4 else "Theee" )

Failing test case input:
9
G W W G P W P G G

Expected output:
Three

Actual output:
Theee


Fixed submission (verdict: Accepted):


input()

print("Four" if len(set(input().split())) == 4 else "Three" )

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
hina = input().split()
flag = "syurui_3"
for i in hina:
  if i == "y":
    flag = "syurui_4"
if flag == "syurui_3":
  print("Three")
else:
  print("Four")

Failing test case input:
6
I V Y P Y V

Expected output:
Four


Actual output:
Three


Fixed submission (verdict: Accepted):
N = int(input())
hina = input().split()
flag = "syurui_3"
for i in hina:
  if i == "Y":
    flag = "syurui_4"
if flag == "syurui_3":
  print("Three")
else:
  print("Four")

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = list(input().split())
print("Four" if len(set(s))==4 else "Three")

Failing test case input:
6
C W Y Q Y W

Expected output:
Four


Actual output:
Three


Fixed submission (verdict: Accepted):
input();s = list(input().split())
print("Four" if len(set(s))==4 else "Three")

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x = input().split(" ")
t = True
for i in x:
    if i == 'Y':
        t = False
        continue

if t:
    print("Three")
else:
    print("Four")

Failing test case input:
8
P Y W H Y Y Y Y

Expected output:
Four


Actual output:
Three


Fixed submission (verdict: Accepted):
y = input()
x = input().split(" ")
t = True
for i in x:
    if i == 'Y':
        t = False
        continue

if t:
    print("Three")
else:
    print("Four")

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S_list = list(map(str, input().split( )))
import collections
S_dict = collections.Counter(S_list)
S_val, S_count=zip(*S_dict.most_common())
ans = len(S_val)
print(ans)

Failing test case input:
8
N Y W I Y W Y Y

Expected output:
Four


Actual output:
4


Fixed submission (verdict: Accepted):
N = int(input())
S_list = list(map(str, input().split( )))
import collections
S_dict = collections.Counter(S_list)
S_val, S_count=zip(*S_dict.most_common())
ans_number = len(S_val)
ans = 'Three'
if ans_number == 4:
  ans = 'Four'
print(ans)

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

N, *S = open(0).read().split()
print(len(set(S)))

Failing test case input:
6
G X Y P Y X

Expected output:
Four


Actual output:
4


Fixed submission (verdict: Accepted):

N, *S = open(0).read().split()
print("Three" if len(set(S))==3 else "Four" )
Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
s = set(input().split())
if len(s) == 3:
    print('Tree')
else:
    print('Four')

Failing test case input:
9
G W W G P W P G G

Expected output:
Three

Actual output:
Tree


Fixed submission (verdict: Accepted):
N = int(input())
s = set(input().split())
if len(s) == 3:
    print('Three')
else:
    print('Four')

Problem: p03424
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
S = list(map(str, input().split()))

if 'Y' in S:
    print('Four')
else:
    print('three')

Failing test case input:
9
G W W G P W P G G

Expected output:
Three

Actual output:
three


Fixed submission (verdict: Accepted):
N = int(input())
S = list(map(str, input().split()))

if 'Y' in S:
    print('Four')
else:
    print('Three')

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
s=set(input().split())
print(len(s))

Failing test case input:
6
H X Y P Y Y

Expected output:
Four


Actual output:
4


Fixed submission (verdict: Accepted):
n=int(input())
s=set(input().split())
print("Four" if len(s)==4 else "Three")

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

n=int(input())
a=list(set(input()))
print(a)
print('Three' if len(a)==4 else 'Four')

Failing test case input:
8
P Y W F Y W Y Y

Expected output:
Four


Actual output:
['Y', 'P', 'F', 'W', ' ']
Four


Fixed submission (verdict: Accepted):

n=int(input())
a=list(set(input()))
print('Three' if len(a)==4 else 'Four')

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
An = input().split()
if len(An)==3:
    print("Three")
else:
    print("Four")

Failing test case input:
9
G W W G P W P G G

Expected output:
Three

Actual output:
Four


Fixed submission (verdict: Accepted):
N = int(input())
An = set(input().split())
if len(An)==3:
    print("Three")
else:
    print("Four")

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
s = set(input().split())
print(len(s))

Failing test case input:
8
Q Y X H Y X X Y

Expected output:
Four


Actual output:
4


Fixed submission (verdict: Accepted):
n = int(input())
s = set(input().split())
print("Three" if len(s) == 3 else "Four")

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
color = input().split()
print(color)

if 'Y' in color:
    print("Four")
else:
    print("Three")

Failing test case input:
8
P Y W F Y W Y Y

Expected output:
Four


Actual output:
['P', 'Y', 'W', 'F', 'Y', 'W', 'Y', 'Y']
Four


Fixed submission (verdict: Accepted):
n = int(input())
color = input().split()
 
if 'Y' in color:
    print("Four")
else:
    print("Three")

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=int(input())
S=input()
if 'Y' in S :
  print('Three')
else:
  print('Four')


Failing test case input:
8
Q Y X H Y X X Y

Expected output:
Four


Actual output:
Three


Fixed submission (verdict: Accepted):
N=int(input())
S=input()
if 'Y' in S :
  print('Four')
else:
  print('Three')
Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
input()
print(len(set(input().split())))

Failing test case input:
8
Q X X I Y X Y Y

Expected output:
Four


Actual output:
4


Fixed submission (verdict: Accepted):
input()
print(['Three','Four'][len(set(input().split()))-3])

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):


n = int(input())
s = input().split()

isFour = False
for i in s:
    if i == "Y":
        isFour = True

if isFour:
    print("Four")
else:
    print("Tree")
    


Failing test case input:
9
G W W G P W P G G

Expected output:
Three

Actual output:
Tree


Fixed submission (verdict: Accepted):


n = int(input())
s = input().split()

isFour = False
for i in s:
    if i == "Y":
        isFour = True

if isFour:
    print("Four")
else:
    print("Three")

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
s=input()
Y=False
for w in s:
    if w=="Y":
        Y=True
if Y==True:
    print("four")
else:
    print("three")


Failing test case input:
6
G X X O X X

Expected output:
Three


Actual output:
three


Fixed submission (verdict: Accepted):
n=int(input())
s=input()
Y=False
for w in s:
    if w=="Y":
        Y=True
if Y==True:
    print("Four")
else:
    print("Three")

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
zenbu = int(input())
mame = [i for i in input().split()]

kiiro = 0

for mame in range(zenbu):
    if mame == 'Y':
       kiiro = 1
       break

if kiiro == 1:
    print('Four')
else:
    print('Three')

Failing test case input:
8
O Y W H Y W Y Y

Expected output:
Four


Actual output:
Three


Fixed submission (verdict: Accepted):
zenbu = int(input())
mame = [i for i in input().split()]

kiiro = 0

for moji in mame:
    if moji == 'Y':
       kiiro = 1
       break

if kiiro == 1:
    print('Four')
else:
    print('Three')

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = list(input().split())
c = "kara"
if S == "Y":
	c = "Four"
else :
	c = "Three"
	
print(c)

Failing test case input:
6
D W Y N Y W

Expected output:
Four


Actual output:
Three


Fixed submission (verdict: Accepted):
n = int(input())
S = list(input().split())
c = "Three"
for i in range(n):
	if S[i] == "Y":
		c = "Four"

print(c)

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
_=input()
print('Three' if set(map(str, input().split()))==3 else 'Four')

Failing test case input:
9
G W W G P W P G G

Expected output:
Three

Actual output:
Four


Fixed submission (verdict: Accepted):
_=input()
print('Three' if len(set(map(str, input().split())))==3 else 'Four')

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
str=input()
ans=3
for i in range(0,n):
    if str[i]=="Y":
        ans=4
print(ans)

Failing test case input:
6
E W Y O Y W

Expected output:
Four


Actual output:
4


Fixed submission (verdict: Accepted):
n=int(input())
str=input().split(" ")
ans=3
for i in range(0,n):
    if str[i]=="Y":
        ans=4
if ans==4:
    print("Four")
else:
    print("Three")
Problem: p03424
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
s = list(input())

res = []
ans = 0
for i in s:
  if i not in res:
    res.append(i)
    ans += 1
    
if ans == 3:
  print('Three')
else:
  print('Four')

Failing test case input:
9
G W W G P W P G G

Expected output:
Three

Actual output:
Four


Fixed submission (verdict: Accepted):
n = int(input())
s = list(input().split())

res = []
ans = 0
for i in s:
  if i not in res:
    res.append(i)
    ans += 1
    
if ans == 3:
  print('Three')
else:
  print('Four')

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
araresuu = input()
sikou = input()
kaisuu = 0
for i in sikou:
    if i == 'Y':
        print('four')
        break
    kaisuu += 1
if kaisuu == len(sikou):
    print('Three')

Failing test case input:
6
E W Y Q Y W

Expected output:
Four


Actual output:
four


Fixed submission (verdict: Accepted):
araresuu = int(input())
sikou = input().split()
kaisuu = 0

for i in sikou:
    if i == 'Y':
        print('Four')
        break
    kaisuu += 1

if kaisuu == araresuu:
    print('Three')

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from math import *

n = int(input())
s = input()
b = False
for x in range(len(s)):
  if x is 'Y':
    b = True
    break
print('Four' if b else 'Three')


Failing test case input:
8
Q Y X H Y X Y Y

Expected output:
Four


Actual output:
Three


Fixed submission (verdict: Accepted):
from math import *

n = int(input())
s = input()
b = False
for x in range(len(s)):
  if s[x] is 'Y':
    b = True
    break
print('Four' if b else 'Three')

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = list(map(str, input().split()))
if 'Y' in S:
    print('Four')
else:
    print('Tree')

Failing test case input:
9
G W W G P W P G G

Expected output:
Three

Actual output:
Tree


Fixed submission (verdict: Accepted):
N = int(input())
S = list(map(str, input().split()))
if 'Y' in S:
    print('Four')
else:
    print('Three')

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def solve(S):
    S = set(S)
    if len(S) == 3:
        return "Three"
    else:
        return "Four"
N = int(input())


S = input()

print(solve(S))




Failing test case input:
9
G W W G P W P G G

Expected output:
Three

Actual output:
Four


Fixed submission (verdict: Accepted):
def solve(S):
    S = set(S)
    if len(S) == 3:
        return "Three"
    else:
        return "Four"
N = int(input())


S = input().split()

print(solve(list(S)))

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
print(len(set(list(map(str,input().split())))))

Failing test case input:
8
Q Y W I Y W Y Y

Expected output:
Four


Actual output:
4


Fixed submission (verdict: Accepted):
n = int(input())
print("Four" if len(set(list(map(str,input().split()))))==4 else "Three")
Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print('Four' if 'Y' in input() else 'Three')

Failing test case input:
8
N Y W G Y W Y Y

Expected output:
Four


Actual output:
Three


Fixed submission (verdict: Accepted):
input()
print('Four' if 'Y' in input() else 'Three')

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from collections import Counter

N = int(input())
S = list(map(str,input().split()))
counter = Counter(S)

res = 0
for s in counter.values():
    res += s
if s == 3:
    print("Three")
else:
    print("Four")

Failing test case input:
8
Q X X H Y Y X Y

Expected output:
Four


Actual output:
Three


Fixed submission (verdict: Accepted):
from collections import Counter

N = int(input())
S = list(map(str,input().split()))
counter = Counter(S)
s = len(counter)
if s == 3:
    print("Three")
else:
    print("Four")

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
Ss = set([s for s in input()])
print(Ss)
if len(Ss)-1==3:
    print("Three")
else:
    print("Four")

Failing test case input:
6
H W Y O Y W

Expected output:
Four


Actual output:
{'H', 'W', 'O', ' ', 'Y'}
Four


Fixed submission (verdict: Accepted):
N = int(input())
An = set(input().split())
if len(An)==3:
    print("Three")
else:
    print("Four")

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
c = [map(str, input().split())]
print('Three' if len(set(c))==3 else 'Four')

Failing test case input:
6
G X X O X X

Expected output:
Three


Actual output:
Four


Fixed submission (verdict: Accepted):
n = int(input())
c = list(map(str, input().split()))
print('Three' if len(set(c))==3 else 'Four')

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
int()
l=map(str,input().split())
print("Four" if len(set(l))==4 else "Three")

Failing test case input:
6
H V Y P Y V

Expected output:
Four


Actual output:
Three


Fixed submission (verdict: Accepted):
input()
l=map(str,input().split())
print("Four" if len(set(l))==4 else "Three")

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
arare = input().split()
if arare.count("Y") > 0:
	print("FOUR")
else:
	print("THREE")

Failing test case input:
6
I V Y O Y V

Expected output:
Four


Actual output:
FOUR


Fixed submission (verdict: Accepted):
n = int(input())
arare = input().split()
if arare.count("Y") > 0:
	print("Four")
else:
	print("Three")

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import collections
N = int(input())
S = list(map(str,input().split(' ')))
C = collections.Counter(S)
print(len(C))

Failing test case input:
8
Q X X H Y Y X Y

Expected output:
Four


Actual output:
4


Fixed submission (verdict: Accepted):
import collections
N = int(input())
S = list(map(str,input().split(' ')))
C = collections.Counter(S)
if len(C) == 3:
  print('Three')
else:
  print('Four')
Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = list(input().split())
ind = 0
for i in range(N):
    if S[i]=="Y":
        ind = 1
        break
if ind==1:
    print("Four")
else:
    print("three")

Failing test case input:
9
G W W G P W P G G

Expected output:
Three

Actual output:
three


Fixed submission (verdict: Accepted):
N = int(input())
S = list(input().split())
ind = 0
for i in range(N):
    if S[i]=="Y":
        ind = 1
        break
if ind==1:
    print("Four")
else:
    print("Three")

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
li = []
count =0

liste = [x for x in input().split()]
temp = []

for i in range(len(liste)):
    if liste[i] not in temp:
        temp.append(liste[i])
        count +=1


print(count)


Failing test case input:
6
I W Y P Y Y

Expected output:
Four


Actual output:
4


Fixed submission (verdict: Accepted):
n = int(input())
li = []
count =0

liste = [x for x in input().split()]
temp = []

for i in range(len(liste)):
    if liste[i] not in temp:
        temp.append(liste[i])

if len(temp)==3:
    print("Three")

else:
    print("Four")

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
araresuu = input()
sikou = input().split()
kaisuu = 0
for i in sikou:
    if i == 'Y':
        print('Four')
        break
    kaisuu += 1
if kaisuu == araresuu:
    print('Three')

Failing test case input:
6
G X X O X X

Expected output:
Three


Actual output:

Fixed submission (verdict: Accepted):
araresuu = int(input())
sikou = input().split()
kaisuu = 0

for i in sikou:
    if i == 'Y':
        print('Four')
        break
    kaisuu += 1

if kaisuu == araresuu:
    print('Three')

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
_ = input()
print(['Four', 'Three'][len(input()) == 3])

Failing test case input:
6
G X X O X X

Expected output:
Three


Actual output:
Four


Fixed submission (verdict: Accepted):
_ = input()
print(['Three', 'Four']['Y' in input()])

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
c=list(map(str, input().split()))
L=[]
for i in range(n):
  if len([1 for l in L if l==c[i]]):
    L.append(c[i])
if len(L)==4:
  print('Four')
else:
  print('Three')

Failing test case input:
6
H W Y P Y W

Expected output:
Four


Actual output:
Three


Fixed submission (verdict: Accepted):
n=int(input())
c=list(map(str, input().split()))
L=[]
for i in range(n):
  if len([1 for l in L if l==c[i]]) == 0:
    L.append(c[i])
if len(L)==4:
  print('Four')
else:
  print('Three')

Problem: p03424
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
s = list(input().split())

num = 0
l = []

for i in s:
  if i not in l:
    num += 1
  l.append(i)
print(num)

Failing test case input:
8
O Y W H Y W Y Y

Expected output:
Four


Actual output:
4


Fixed submission (verdict: Accepted):
n = int(input())
s = list(input().split())

num = 0
l = []

for i in s:
  if i not in l:
    num += 1
  l.append(i)
if num == 3:
    print('Three')
else:
    print('Four')
Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
s = input().split()

print("Four" if "Y" in s else "Tree")


Failing test case input:
9
G W W G P W P G G

Expected output:
Three

Actual output:
Tree


Fixed submission (verdict: Accepted):
n = int(input())
s = input().split()

print("Four" if "Y" in s else "Three")

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
lst = []
s = input()
print(s)
for i in range(n):
  if s[i] not in lst:
    lst.append(s[i])
if len(lst) == 3:
  print("Three")
else:
  print("Four")

Failing test case input:
6
E W Y O Y Y

Expected output:
Four


Actual output:
E W Y O Y Y
Four


Fixed submission (verdict: Accepted):
n=int(input())
lst = []
s = input().split(" ")
for i in range(n):
  if s[i] not in lst:
    lst.append(s[i])
if len(lst) == 3:
  print("Three")
else:
  print("Four")

Problem: p03424
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
input()
print('Three' if 'Y' in input().split() else 'Four')

Failing test case input:
8
O Y W J Y W Y Y

Expected output:
Four


Actual output:
Three


Fixed submission (verdict: Accepted):
input()
print('Four' if 'Y' in input().split() else 'Three')

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
s = list(map(str, input().split(' ')))


si = [print('Four')if 'Y' in s else print('Tree') ]

Failing test case input:
9
G W W G P W P G G

Expected output:
Three

Actual output:
Tree


Fixed submission (verdict: Accepted):
n = int(input())
s = list(map(str, input().split(' ')))


si = [print('Four')if 'Y' in s else print('Three') ]

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = list(map(str,input().split()))
num = 0

for i in range(N):
    if S[i]=='Y':
        num = +1
        break

if num>=1:
    print('Four')
else:
    print('No')
    

        

Failing test case input:
6
G X X O X X

Expected output:
Three


Actual output:
No


Fixed submission (verdict: Accepted):
N= int(input())
S = list(map(str,input().split()))
num = 0

for i in range(N):
    if S[i]=='Y':
        num = +1
        break

if num>=1:
    print('Four')
else:
    print('Three')

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()
Y=False
for w in s:
    if w=="Y":
        Y=True
if Y==True:
    print("four")
else:
    print("three")


Failing test case input:
8
N Y W F Y W Y Y

Expected output:
Four


Actual output:
three


Fixed submission (verdict: Accepted):
n=int(input())
s=input()
Y=False
for w in s:
    if w=="Y":
        Y=True
if Y==True:
    print("Four")
else:
    print("Three")

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
s=list(map(str,input().split()))

if len(s) == 4:
  print("Four")
else:
  print("Three")

Failing test case input:
8
N Y W G Y W Y Y

Expected output:
Four


Actual output:
Three


Fixed submission (verdict: Accepted):
n=int(input())
s=list(map(str,input().split()))

if s.count("Y") >= 1:
  print("Four")
else:
  print("Three")
Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
ips = []
ips.append(input())
while True:
    try:
        ips.append(input())
    except (EOFError):
        break
num = int(ips[0])
hina = ips[1]
v = []
for i in range(num):
    if hina[i] not in v:
        v.append(hina[i])
if len(v) == 3:
    print("three")
elif len(v) == 4:
    print("four")

Failing test case input:
6
I W Y P Y Y

Expected output:
Four


Actual output:
four


Fixed submission (verdict: Accepted):
ips = []
ips.append(input())
while True:
    try:
        ips.append(input())
    except (EOFError):
        break
num = int(ips[0])
hina = ips[1].split(" ")
v = []
for i in range(num):
    if hina[i] not in v:
        v.append(hina[i])
if len(v) == 3:
    print("Three")
elif len(v) == 4:
    print("Four")

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
s_list = set(input().split())
if len(s_list) == 3:
    print('Tree')
elif len(s_list) == 4:
    print('Four')

Failing test case input:
6
G X X O X X

Expected output:
Three


Actual output:
Tree


Fixed submission (verdict: Accepted):
n = int(input())
s_list = set(input().split())
if len(s_list) == 3:
    print('Three')
elif len(s_list) == 4:
    print('Four')

Problem: p03424
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
S = list(map(str, input().split()))
if "Y" in S == True:
    print("Four")
else:
    print("Three")

Failing test case input:
6
D W Y P Y W

Expected output:
Four


Actual output:
Three


Fixed submission (verdict: Accepted):
N = int(input())
S = list(map(str, input().split()))

if 'Y' in S:
    print("Four")
else:
    print("Three")

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
_ = input()
print(['Four', 'Three'][len(set(input())) == 3])

Failing test case input:
9
G W W G P W P G G

Expected output:
Three

Actual output:
Four


Fixed submission (verdict: Accepted):
_ = input()
print(['Three', 'Four']['Y' in input()])

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
str = input().split()
print(str)
if 'Y' in str:
    print("Four")
else:
    print("Three")


Failing test case input:
6
F W Y Q Y W

Expected output:
Four


Actual output:
['F', 'W', 'Y', 'Q', 'Y', 'W']
Four


Fixed submission (verdict: Accepted):
N = int(input())
str = input().split()
if 'Y' in str:
    print("Four")
else:
    print("Three")

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = input()
s = set(list(input()))
if len(s) == 3:
  print('Three')
else:
  print('Four')

Failing test case input:
9
G W W G P W P G G

Expected output:
Three

Actual output:
Four


Fixed submission (verdict: Accepted):
N = input()
s = set(input().split())
if len(s) == 3:
  print('Three')
else:
  print('Four')