qyliang/CodeNanoFix huggingface dataset:
Buggy code:
def getN():
    return int(input())
def getNM():
    return map(int, input().split())
def getList():
    return list(map(int, input().split()))

ans = 0
N, K = getNM()
for i in range(N):
    b = i + 1
    if b > K:
        set = N // b
        ans += set*(b-K)
        rem = N % b
        ans += max(rem-K+1,0)
print(ans)


Fixed code:
def getN():
    return int(input())
def getNM():
    return map(int, input().split())
def getList():
    return list(map(int, input().split()))

ans = 0
N, K = getNM()
for i in range(N):
    b = i + 1
    if b > K:
        set = N // b
        ans += set*(b-K)
        rem = N % b
        if K == 0:
            ans -=1
        ans += max(rem-K+1,0)
print(ans)
Buggy code:
n,k=map(int,input().split())
ans=0
for i in range(k+1,n+1):
  ans+=(n//i)*(i-k)+max(n%i-k+1,0)
print(n**2 if k== else ans)

Fixed code:
n, k = map(int, input().split())
ans = 0

if k == 0:
	print(n ** 2)
else:
	for i in range(k + 1, n + 1):
		div = n // i
		ans += (i - k) * div
		if n % i != 0:
			ans += max(n + 1 - ((n // i) * i + k), 0)

	print(ans)
Buggy code:
n, k = map(int, input().split())

ans = 0
for b in range(1, n + 1):
    ans += max(b - k, 0) * n // b
    ans += max(0, n % b - k + 1)

if k == 0:
    ans -= n

print(ans)

Fixed code:
n, k = map(int, input().split())
ans = 0
if k==0:
    print(n**2)
    exit()
for b in range(k+1, n+1):
    ans += (b-k)*(n//b) + max(0, n%b - k+1)
print(ans)
Buggy code:
N, K = map(int, input().split())
ans = 0
for b in range(1, N+1):
    block_K = max(0, b-K)
    #print("b", b, "block_num", N//b, "block_K", block_K, "remain", (N+1)%b)
    ans += block_K * ((N+1)//b) + max(0, (N+1)%b - K)

print(ans)

Fixed code:
N, K = map(int, input().split())
ans = 0
if K == 0:
    print(N**2)
    exit()
    
for b in range(1, N+1):
    block_K = max(0, b-K)
    #print("b", b, "block_num", (N+1)//b, "block_K", block_K, "remain", (N+1)%b)
    ans += block_K * ((N+1)//b) + max(0, (N+1)%b - K)

print(ans)
Buggy code:
n, k = map(int, input().split())

ans = 0
for b in range(1, n + 1):
    r = n % b
    ans += max(b - k, 0) * n // b
    ans += max(0, r - k + 1)

if k == 0:
    ans -= n

print(ans)


Fixed code:
n, k = map(int,input().split())

ans = 0

for b in range(1, n + 1):
    ans += ((n+1)//b)*max(0,b-k) + max(0,((n+1)%b)-k)
    if k == 0:
        ans -= 1

print(ans)
Buggy code:
import sys

N,K = map(int, input().split())
res = 0
if K==0:
    print(N*N)
    sys.exit(0)
for i in range(N):
    i += 1
    if i-K<=0:
        continue
    amari = N % i
    amari = amari - K + 1
    re = N//i
    if amari<=0:
        amari = 0
    res += re*(i-K) + amari
 print(res)

Fixed code:
import sys

N,K = map(int, input().split())
res = 0
if K==0:
    print(N*N)
    sys.exit(0)
for i in range(N):
    i += 1
    if i-K<=0:
        continue
    amari = N % i
    amari = amari - K + 1
    re = N // i
    if amari <= 0:
        amari = 0
    res += re*(i-K) + amari
print(res)
Buggy code:
def solve():
    N, K = map(int, input().split())

    res = 0
    for b in range(K+1, N+1):
        res += b-K
        res += (N//b - 1) * (b-K)
        res += (N%b)-K+1 if N%b >= K else 0
    print(res)

if __name__ == "__main__":
    solve()

Fixed code:
def solve():
    N, K = map(int, input().split())

    res = 0
    for b in range(K+1, N+1):
        res += b-K
        res += (N//b - 1) * (b-K)
        res += (N%b)-K+1 if N%b >= K else 0
    if K == 0:
        res -= N
    print(res)

if __name__ == "__main__":
    solve()
Buggy code:
# coding: utf-8
# Your code here!
N,K=[int(i) for i in input().split()]

num = 0
if K==0:
    print(N*N)
else:
    for b in range(K+1,N+1):
        num += (b-K)*(N//b) + max(0,N%b-(K-1))
print(num)
    

Fixed code:
# coding: utf-8
# Your code here!
N,K=[int(i) for i in input().split()]

num = 0
if K==0:
    print(N*N)
else:
    for b in range(K+1,N+1):
        num += (b-K)*(N//b) + max(0,N%b-(K-1))
    print(num)

#nnn=0
#for a in range(1,N+1):
#    for b in range(1,N+1):
#        if a%b >= K:
#            nnn+=1
#print(nnn)
Buggy code:
N,K = map(int,input().split())
ans = 0
for b in range(K+1, N+1):
	# a=K, K+b, K+2b, ...
	n = N // b
	r = N % b
	c = b - K
	ans += n * c
	print(b, n*c, r-K+1)
	if r >= K:
		if K > 0:
			ans += r - K + 1
		else:
			ans += r - K
print(ans)

Fixed code:
N,K = map(int,input().split())
ans = 0
for b in range(K+1, N+1):
	# a=K, K+b, K+2b, ...
	n = N // b
	r = N % b
	c = b - K
	ans += n * c
	if r >= K:
		if K > 0:
			ans += r - K + 1
		else:
			ans += r - K
print(ans)
Buggy code:
N,K=map(int,input().split())
ans=0
for b in range(K+1,N+1):
    ans+=(N//b*(b-K))+max(N%b+1-K,0)
print(ans)

Fixed code:
N, K = map(int, input().split())
ans = 0
for b in range(K+1, N+1):
    k = N // b
    ans += k * (b-K) + max((N % b) - K + 1, 0)
    if K == 0:
        ans -= 1
print(ans)
Buggy code:
N = int(input())
S = input().split()
K = set(S)
p = list(k)
if len(p) == 3:
  print("Three")
elif len(p) == 4:
  print("Four")

Fixed code:
N = int(input())
S = input().split()
K = set(S)
p = list(K)
if len(p) == 3:
  print("Three")
elif len(p) == 4:
  print("Four")
Buggy code:
N = int(input())
List = list(map(int, input().split()))
s_l = set(List)
if len(s_l) == 3:
  print("Three")
else:
  print("Four")

Fixed code:
N = int(input())
List = list(map(str, input().split()))
s_l = set(List)
if len(s_l) == 3:
  print("Three")
else:
  print("Four")
Buggy code:
n = int(input())
lst1 = list(map(int,input().split()))

lst1 = list(set(lst1))

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

Fixed code:
n = int(input())
lst1 = list(input().split())

lst1 = list(set(lst1))

if len(lst1) == 4:
    print("Four")
else:
    print('Three')
Buggy code:
N = int(input())
S = list(map(int,input().split()))

Ans = "Three"
for s in S:
    if s=="Y":
        Ans = "Four"
        break

print(Ans)

Fixed code:
N = int(input())
S = list(input().split())

Ans = "Three"
for s in S:
    if s=="Y":
        Ans = "Four"
        break

print(Ans)
Buggy code:
N = int(input())
S = list(map(int, input().split()))

cnt=0
for i in range(N):
    if S[i]=='Y':
        print('Four')
        break
        cnt=0
    else:
        cnt+=1
if cnt==N:
    print('Three')

Fixed code:
N = int(input())
S = list(map(str, input().split()))

cnt=0
for i in range(N):
    if S[i]=='Y':
        print('Four')
        break
        cnt=0
    else:
        cnt+=1
if cnt==N:
    print('Three')
Buggy code:
n = int(input())
s = list(input().split())

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


Fixed code:
n = int(input())
s = list(input().split())
color = set(s)

if len(color) == 3:
  print('Three')
else:
  print('Four')
Buggy code:
_=input()
print('Three' if set(map(str, input().split()))==3 else 'Four')

Fixed code:
_=input()
print('Three' if len(set(map(str, input().split())))==3 else 'Four')
Buggy code:
# -*- coding: utf-8 -*-


def main():
    """Function."""
    n = int(input())
    s = list(map(str, input().split()))

    check = set()
    for i in range(n):
        check.append(s[i])

    if len(check) == 3:
        print("Three")
    else:
        print("Four")


if __name__ == "__main__":
    main()


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


def main():
    """Function."""
    n = int(input())
    s = list(map(str, input().split()))

    check = set()
    for i in range(n):
        check.add(s[i])

    if len(check) == 3:
        print("Three")
    else:
        print("Four")


if __name__ == "__main__":
    main()
Buggy code:
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')
    

        

Fixed code:
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')
Buggy code:
n = int(input())
S = list(input().split())
c = "kara"
for i in range(n):
	if S[i] == "Y":
		c = "Four"
	else :
		c = "Three"
	
print(c)

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

print(c)
Buggy code:
N = int(input())
colors = list(map(int, input().split()))
if len(set(colors)) == 3:
  print('Three')
else:
  print('Four')

Fixed code:
N = int(input())
colors = list(input().split())
if len(set(colors)) == 3:
    print('Three')
else:
    print('Four')
Buggy code:
N = int(input())
S = list(map(int,input().split()))
if len(set(S)) == 4:
    print('Four')
elif len(set(S)) == 3:
    print('Three')

Fixed code:
N = int(input())
S = list(map(str,input().split()))
if len(set(S)) == 4:
    print('Four')
elif len(set(S)) == 3:
    print('Three')
Buggy code:
int()
l=map(str,input().split())
print("Four" if len(set(l))==4 else "Three")

Fixed code:
input()
l=map(str,input().split())
print("Four" if len(set(l))==4 else "Three")
Buggy code:
n = int(input())
s = map(str,input().split())
if s in 'Y':
  print('Four')
else:
  print('Three')

Fixed code:
n = int(input())
s = map(str,input().split())
if 'Y' in s:
  print('Four')
else:
  print('Three')
Buggy code:
import sys
input = sys.stdin.readline

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

print(s)


flag = True

for i in s:
    if i=='Y':
        flag=False
        break

if flag:
    print('Three')
else:
    print('Four')

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

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

flag = True

for i in s:
    if i=='Y':
        flag=False
        break

if flag:
    print('Three')
else:
    print('Four')
Buggy code:
N=int(input())
S=list(map(int,input().split()))

M=set(S)
if len(M)==4:
  print("Four")
else:
  print("Three")

Fixed code:
N=int(input())
S=list(input().split() )

M=set(S)
if len(M)==4:
  print("Four")
else:
  print("Three")
Buggy code:
n=int(input())
s=list(input().split())
print(s)
print("Four" if "Y" in s else "Three")

Fixed code:
n = int(input())
s = list(input().split())

if "Y" in s:
    print("Four")
else:
    print("Three")
Buggy code:
N, = map(int, input().split())
X = set(map(int, input().split()))
if len(X) == 3:
    print("Three")
else:
    print("Four")


Fixed code:
N, = map(int, input().split())
X = set(map(str, input().split()))
if len(X) == 3:
    print("Three")
else:
    print("Four")
Buggy code:
n = int(input())
ans = len(set(list(input().split())))
if ans == 3:
    print('three')
else:
    print('Four')

Fixed code:
n = int(input())
ans = len(set(list(input().split())))
if ans == 3:
    print('Three')
else:
    print('Four')
Buggy code:
n=int(input())
l=[map(int,input().split())]

for i in range (n):
  if l[i]=='Y':
    print('Four')
    exit()
print('Three')

Fixed code:
n=int(input())
l=list(map(str,input().split()))

for i in range (n):
  if l[i]=='Y':
    print('Four')
    exit()
print('Three')
Buggy code:
N = int(input())
S = input().split()
print(S)
if len(set(S)) == 3:
  print("Three")
else:
  print("Four")


Fixed code:
N = int(input())
S = list(input().split())
if len(set(S))==3:
    print("Three")
else: print("Four")
Buggy code:
n=input()
print("Four" if len(set(map(int,input().split())))==4 else "Three")

Fixed code:
n = int(input())
print("Four") if len(set(list(map(str, input().split())))) == 4 else print("Three")
Buggy code:
N = int(input())
S = list(map(int, input().split()))
y = 0
for i in range(N):
	if S[i] == "Y":
		y = 1
if y == 0:
	print("Three")
else:
	print("Four")

Fixed code:
N = int(input())
S = list(input().split())
y = 0
for i in range(N):
	if S[i] == "Y":
		y = 1
if y == 0:
	print("Three")
else:
	print("Four")
Buggy code:
n = int(input())
list = list(map(int, input().split()))

if "Y" in list:
    print("Four")
else:
    print("Three")

Fixed code:
n = int(input())
list = list(map(str, input().split()))

if "Y" in list:
    print("Four")
else:
    print("Three")
Buggy code:
n=int(input())
C=list(map(int, input().split()))
c=set(C)
if len(c)==4:
  print('Four')
else:
  print('Three')

Fixed code:
n=int(input())
C=list(map(str, input().split()))
c=set(C)
if len(c)==4:
  print('Four')
else:
  print('Three')
Buggy code:
N = int(input())
S = list(map(int, input().split()))

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


Fixed code:
N = int(input())
S = list(map(str, input().split()))

if "Y" in S:
    print("Four")
else:
    print("Three")
Buggy code:
n=int(input())
l=list(map(int,input().split()))
print('Four' if 'Y' in l else 'Three')

Fixed code:
n=int(input())
l=list(map(str,input().split()))
print('Four' if 'Y' in l else 'Three')
Buggy code:
N = int(input())
S = [int(i) for i in input().split()]

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

Fixed code:
N = int(input())
S = [i for i in input().split()]

if "Y" in S:
    print("Four")
else:
    print("Three")
Buggy code:
n=int(input())
lis=list(input().split())
ans=0
for i in range(n):
  if lis[i] == "P":
    ans=1
print(["Three","Four"][ans])


Fixed code:
n=int(input())
lis=list(input().split())
ans=0
for i in range(n):
  if lis[i] == "Y":
    ans=1
print(["Three","Four"][ans])
Buggy code:
import sys
input = sys.stdin.readline
N = int(input())
S = input().rstrip().split()
from collections import Counter
c = Counter(s)
if len(c.keys) == 4:
    print("Four")
else:
    print("Three")

Fixed code:
import sys
input = sys.stdin.readline
N = int(input())
S = input().rstrip().split()
from collections import Counter
c = Counter(S)
if len(c.keys()) == 4:
    print("Four")
else:
    print("Three")
Buggy code:
n = int(input())
k = len(set(map(str, input().split())))
if k = 4:
  print('Four')
else:
  print('Three')


Fixed code:
n = int(input())
k = len(set(map(str, input().split())))
if k == 4:
  print('Four')
else:
  print('Three')
Buggy code:
def sortex(X):
  b=sorted(X)
  b.append("null")
  a=[]
  for i in range(len(X)):
    if b[i]!=b[i+1]:a.append(b[i])
  return a
n,s=int(input()),input().split();s=sortex(s);print("Four"if len(n)==4else"Three")

Fixed code:
def sortex(X):
  b=sorted(X)
  b.append("null")
  a=[]
  for i in range(len(X)):
    if b[i]!=b[i+1]:a.append(b[i])
  return a
n,s=int(input()),input().split();s=sortex(s);print("Four"if len(s)==4else"Three")
Buggy code:
N = int(input())
An = input().split()
if len(An)==3:
    print("Three")
else:
    print("Four")

Fixed code:
N = int(input())
An = set(input().split())
if len(An)==3:
    print("Three")
else:
    print("Four")
Buggy code:
a = int(input())
b = input().split()
c = list(set(b))

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

Fixed code:
a = int(input())
b = input().split()
c = list(set(b))

if len(c) == 4:
  print("Four")
else:
  print("Three")
Buggy code:
n=int(input())
l=list(input())
if 'Y' in l:
  print(Four)
else:
  print(Three)

Fixed code:
n = int(input())
l=list(input())
if 'Y' in l:
  print('Four')
else:
  print('Three')
Buggy code:
n = int(input())
s = list(map(str,input().split()))

print(s)


if y_n == 0:
	print('Three')  
else:
	print('Four')  

Fixed code:
n = int(input())
s = list(map(str,input().split()))


y_n = s.count('Y')

if y_n == 0:
	print('Three')  
else:
	print('Four')
Buggy code:
n=iny(input())
a=set(list(input().split())
if len(a)==3:
    print("Three")
else:
    print("Four")

Fixed code:
n=int(input())
a=set(list(input().split()))
if len(a)==3:
    print("Three")
else:
    print("Four")
Buggy code:
n = int(input())
arare = list(map(int,input().split()))
if 'Y' in arare:
  print('Four')
else:
  print('Three')

Fixed code:
n = int(input())
arare = list(map(str,input().split()))
if 'Y' in arare:
  print('Four')
else:
  print('Three')
Buggy code:
N = int(input())
S = [int(x) for x in input().split()]
if 'Y' in S:
  print("Four")
else:
  print("Three")
  

Fixed code:
N = int(input())
S = [x for x in input().split()]
if 'Y' in S:
  print("Four")
else:
  print("Three")
Buggy code:
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')

Fixed code:
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')
Buggy code:
a=input()
b=list(map(input().split()))
if "Y" in b:
  print("Four")
else:
  print("Three")

Fixed code:
a=input()
b=list(map(str,input().split()))
if "Y" in b:
  print("Four")
else:
  print("Three")
Buggy code:
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")

Fixed code:
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")
Buggy code:
n = int(input)
s = input().split()
if "Y" in s:
  print("Four")
else:
  print("Three")

Fixed code:
n=int(input())
s=input().split()
if 'Y' in s:print('Four')
else:print('Three')
Buggy code:
n = int(input())
print("Three" if "Y" in input() else "Four")

Fixed code:
n = int(input())
print("Four" if "Y" in input() else "Three")
Buggy code:
n=int(input())
a=list(map(int,input().split()))
if len(set(a))==3:
  print("Three")
else:
  print("Four")

Fixed code:
n=int(input())
a=list(input().split())
if len(set(a))==3:
  print("Three")
else:
  print("Four")
Buggy code:
n=int(input())
s=list(map(int,input().split()))
if('Y' in s):
	print("Four")
else:
	print("Three")

Fixed code:
n=int(input())
s=list(input().split())
if('Y' in s):
	print("Four")
else:
	print("Three")
Buggy code:
import sys, os

f = lambda:list(map(int,input().split()))
if 'local' in os.environ :
    sys.stdin = open('./input.txt', 'r')

def solve():
    n = f()[0]
    s = input().split()

    for i in s:
        if i == 'Y':
            print('4')
            return
    
    print('3')

solve()


Fixed code:
import sys, os

f = lambda:list(map(int,input().split()))
if 'local' in os.environ :
    sys.stdin = open('./input.txt', 'r')

def solve():
    n = f()[0]
    s = input().split()

    for i in s:
        if i == 'Y':
            print('Four')
            return
    
    print('Three')

solve()
Buggy code:
araresuu = input()
sikou = input().split()
kaisuu = 0
for i in sikou:
    if i == 'Y':
        print('Four')
        break
    kaisuu += 1
if kaisuu == araresuu:
    print('Three')

Fixed code:
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')
Buggy code:
N = int(input())
str = input().split()
print(str)
if 'Y' in str:
    print("Four")
else:
    print("Three")


Fixed code:
N = int(input())
str = input().split()
if 'Y' in str:
    print("Four")
else:
    print("Three")
Buggy code:
n=int(input())
s=set(map(str,input().split()))
n=len(s)
if s==3:
  print("Three")
if s==4:
  print("Four")

Fixed code:
n=int(input())
s=set(map(str,input().split()))
n=len(s)
if n==3:
  print("Three")
if n==4:
  print("Four")
Buggy code:
input()
print('Three' if 'Y' in input().split() else 'Four')

Fixed code:
input()
print('Four' if 'Y' in input().split() else 'Three')
Buggy code:
def main(n, s):
    a = set(s)

    if len(a) == 3:
        print('Three')
    elif len(a) == 4:
        print('Four')


if __name__ == "__main__":
    n = int(input())
    s = list(map(int, input().split()))

    main(n, s)


Fixed code:
def main(n, s):
    a = set(s)

    if len(a) == 3:
        print('Three')
    elif len(a) == 4:
        print('Four')


if __name__ == "__main__":
    n = int(input())
    s = list(input().split())

    main(n, s)
Buggy code:
# ABC089B - Hina Arare
# Editorial ver.
n = int(input())
lst = input().rstrip().split()
print(lst)
print("Four" if "Y" in lst else "Three")

Fixed code:
# ABC089B - Hina Arare
# Editorial ver.
n = int(input())
lst = input().rstrip().split()
print("Four" if "Y" in lst else "Three")
Buggy code:
N = input()
S = input()
char_list = list(S.split(" "))
result = "Three"
for i in range(N):
    if char_list[i] == "Y":
        result = "Four"
print(result)

Fixed code:
N = int(input())
S = input()
char_list = list(S.split(" "))
result = "Three"
for i in range(N):
    if char_list[i] == "Y":
        result = "Four"
print(result)
Buggy code:
N = int(input())
arares = list(map(int, input().split()))
four = False
for arare in arares:
  if arare == 'Y':
    four = True
    break
if four:
  print('Four')
else:
  print('Three')

Fixed code:
N = int(input())
arares = list(input().split())
four = False
for arare in arares:
  if arare == 'Y':
    four = True
    break
if four:
  print('Four')
else:
  print('Three')
Buggy code:
n = int(input())
sl = [i for i in input().split()]
print(["Three", "Four"][len(set(sl)) == 4]

Fixed code:
n = int(input())
sl = [i for i in input().split()]
print(["Three", "Four"][len(set(sl)) == 4])
Buggy code:
n = int(input())
items = set(input().split())
results = {3: 'Tree', 4: 'Four'}
if len(items) in results:
    print(results[len(items)])


Fixed code:
n = int(input())
items = set(input().split())
results = {3: 'Three', 4: 'Four'}
if len(items) in results:
    print(results[len(items)])
Buggy code:
N = int(input())
M = set()
MM = input().split()
for i in MM:
  M.add(i)
print(len(M))
if len(M) == 3:
  print('Three')
else:
  print('Four')

Fixed code:
N = int(input())
M = set()
MM = input().split()
for i in MM:
  M.add(i)

if len(M) == 3:
  print('Three')
else:
  print('Four')
Buggy code:
l = map(str, input().split())
print("Three" if len(set(l)) == 3 else "Four")

Fixed code:
input()
l = map(str, input().split())
print("Three" if len(set(l)) == 3 else "Four")
Buggy code:
n=input()
if "Y" in input():
  print("Four")
else:
  print("Three)

Fixed code:
n=input()
if "Y" in input():
  print("Four")
else:
  print("Three")
Buggy code:
import sys
import copy
import math
import bisect
import pprint
import bisect
from functools import reduce
from copy import deepcopy
from collections import deque
from decimal import *

import numpy


if __name__ == '__main__':
    an = int(input())
    a = [i for i in input().split()]
    ans = len(set(a))
    
    if ans == 4:
        print("Four")
    else:
        print("Tree")




Fixed code:
import sys
import copy
import math
import bisect
import pprint
import bisect
from functools import reduce
from copy import deepcopy
from collections import deque
from decimal import *

import numpy


if __name__ == '__main__':
    an = int(input())
    a = [i for i in input().split()]
    ans = len(set(a))

    if ans == 4:
        print("Four")
    else:
        print("Three")
Buggy code:
input();"TFhoruere"[len(set(input().split()))>3::2]

Fixed code:
input();print("TFhoruere"[len(set(input().split()))>3::2])
Buggy code:
# coding: utf-8
# Your code here!
n = int(input())
l = list(map(int, input().split()))
if len(set(l)) == 3:
    print('Three')
else:
    print('Four')


Fixed code:
# coding: utf-8
# Your code here!
n = int(input())
l = list(map(str, input().split()))
if len(set(l)) == 3:
    print('Three')
else:
    print('Four')
Buggy code:
n=int(input())

a=list(input.split())

if 'Y' in a:
    print('Four')

else:
    print('Three')

Fixed code:
n=int(input())
a=input().split()
if 'Y' in a:
    print('Four')
else:
    print('Three')
Buggy code:
N=int(input())
S=input().split()

S=list(set(S))

if S==3:
    print('Three')
    exit(0)
else:
    print('Four')
    exit(0)

Fixed code:
N=int(input())
S=input().split()

S=list(set(S))

if len(S)==3:
    print('Three')
    exit(0)
else:
    print('Four')
    exit(0)
Buggy code:
N = int(input())
S = list(map(str, input().split()))

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

Fixed code:
N = int(input())
S = list(map(str, input().split()))

if 'Y' in S:
    print('Four')
else:
    print('Three')
Buggy code:
n=input()
a=input().split()
print(("Three","Four")[len(set(a))==4]

Fixed code:
n=input()
a=input().split()
print(("Three","Four")[len(set(a))==4])
Buggy code:
N = int(input())
s = set(map(str,input().split()))
print(s)
if(len(s) == 3):
    print("Three")
else:
    print("Four")


Fixed code:
N = int(input())
s = set(map(str,input().split()))
if(len(s) == 3):
    print("Three")
else:
    print("Four")
Buggy code:
n = int(input())
s = list(map(int, input().split()))
print('Three' if len(set(s)) == 3 else 'Four')

Fixed code:
n = int(input())
s = map(str,input().split())
print('Three' if len(set(s))==3 else 'Four')