ZhenlongDai/ACPR huggingface dataset:
Problem: p03424
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())
lis=list(input().split())
ans=0
for i in range(n):
  if lis[i] == "P":
    ans=1
print(["Three","Four"][ans])


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

Expected output:
Four


Actual output:
Three


Fixed submission (verdict: Accepted):
n=int(input())
lis=list(input().split())
ans=0
for i in range(n):
  if lis[i] == "Y":
    ans=1
print(["Three","Four"][ans])

Problem: p03424
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
input();s=set(list(input()));print("Three")if len(s)==3 else print("Four")

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

Expected output:
Three


Actual output:
Four


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

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = input().split()
c = list(set(b))

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

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

Expected output:
Four


Actual output:
Three


Fixed submission (verdict: Accepted):
a = int(input())
b = input().split()
c = list(set(b))

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

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
s = [str(x) for x in input().split()]
if set(s) == 3:
    print('Three')
else:
    print('four')


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

Expected output:
Four


Actual output:
four


Fixed submission (verdict: Accepted):
n = int(input())
s = [str(x) for x in input().split()]
if len(set(s)) == 3:
    print('Three')
else:
    print('Four')

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


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

Expected output:
Four


Actual output:
4


Fixed submission (verdict: Accepted):
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()

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
input();"TFhoruere"[len(set(input().split()))>3::2]

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

Expected output:
Four


Actual output:

Fixed submission (verdict: Accepted):
input();print("TFhoruere"[len(set(input().split()))>3::2])
Problem: p03424
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
N=int(input())
S=input().split()

S=list(set(S))

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

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=input().split()

S=list(set(S))

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

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
s = list(input().split())
if set(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 = int(input())
s = list(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 = list(input().split())

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


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

Expected output:
Four


Actual output:
Three


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

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

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

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

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):
a = input().split()
if 'Y' in a:
    print(4)
else:
    print(3)

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

Expected output:
Three

Actual output:
3


Fixed submission (verdict: Accepted):
N = int(input())
a = input().split()
if 'Y' in a:
    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()))
print(len(set(S)))

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

Expected output:
Four


Actual output:
4


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

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

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

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

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):
input()
print('Yes' if len(set(input().split()))==3 else 'Four')

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

Expected output:
Three


Actual output:
Yes


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

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
s=list(input())
s=set(s)
if len(s)==4:
    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(input().split())
s=set(s)
if len(s)==4:
    print("Four")
else:
    print("Three")

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
s=list(input().split())
if 'Y' in s:
    print('four')
else:
    print('three')

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

Expected output:
Four


Actual output:
four


Fixed submission (verdict: Accepted):
n=int(input())
s=list(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())
Ss = set([s for s in range(N)])
if len(Ss)==3:
    print("Three")
else:
    print("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())
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())
Ss = set([s for s in input()])
if len(Ss)==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):
a = input().split()
if 'Y' in a:
    print('four')
else:
    print('three')

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

Expected output:
Four


Actual output:
three


Fixed submission (verdict: Accepted):
N = int(input())
a = input().split()
if 'Y' in a:
    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()))

print(s)

y_n = s.count('Y')

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

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

Expected output:
Four


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


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


y_n = s.count('Y')

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

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

Expected output:
Four


Actual output:
Three


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):
_,l=map(str,open(0));print("Four" if len(set(l.split(" ")))==4 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):
n,s=map(str,open(0));print("Four" if "Y" in s else "Three")

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

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

Expected output:
Four


Actual output:
['O', 'Y', 'W', 'H', 'Y', 'W', 'Y', 'Y']
Four


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())
lst = []
s = input()
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:
9
G W W G P W P G G

Expected output:
Three

Actual output:
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.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:
9
G W W G P W P G G

Expected output:
Three

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 = list(input().split())
s_set = set(s_list)
answer = len(list(s_set))
print('Four' if answer == 3 else 'Three')

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

Expected output:
Four


Actual output:
Three


Fixed submission (verdict: Accepted):
n = int(input())

s_list = list(input().split())
s_set = set(s_list)
answer = len(list(s_set))
print('Four' if answer == 4 else 'Three')
Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = [int(i) for i in range(N)]
if "Y" in S:
  print("Four")
else:
  print("Three")


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

Expected output:
Four


Actual output:
Three


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

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
input()
print(["No","Yes"]["Y" in input()])

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

Expected output:
Four


Actual output:
Yes


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())
s = list(map(str, input().split()))
print(len(set(s)))


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

Expected output:
Four


Actual output:
4


Fixed submission (verdict: Accepted):
N = int(input())
s = list(map(str, input().split()))
print(["Four", "Three"][len(set(s))==3])

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print("Four" if "Y" in input() else "Three")


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

Expected output:
Four


Actual output:
Three


Fixed submission (verdict: Accepted):
n=input()
print("Four" if "Y" in input() else "Three")

Problem: p03424
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())
s=list(map(str,input().split()))
for i in range(n):
  if s[i]=="Y":
    print("FOUR")
    exit()
print("Three")

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

Expected output:
Four


Actual output:
FOUR


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(list(input().split()))

print('Three' if len(S) 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):
N = int(input())
S = set(list(input().split()))

print('Three' if len(S) == 3 else 'Four')

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

types = 'Three'
for i in range(len(fukuro)):
  if fukuro[i] == 'Y':
    tyeps = 'Four'
    break
print(types)

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

Expected output:
Four


Actual output:
Three


Fixed submission (verdict: Accepted):
n = int(input())
fukuro = list(map(str,input().split()))
types = 'Three'
for i in range(len(fukuro)):
  if fukuro[i] == 'Y':
    types = 'Four'
    break
print(types)

Problem: p03424
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
ans = len(set(list(input().split())))
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:
three


Fixed submission (verdict: Accepted):
n = int(input())
ans = len(set(list(input().split())))
if ans == 3:
    print('Three')
else:
    print('Four')
Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
s = list(input().split())
print("Four" if len(set(s)) else "Three")

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

Expected output:
Three


Actual output:
Four


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

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
s = [input().split]
s = set(s)
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 = int(input())
s = list(input().split())
s = set(s)
if len(s) == 3:
    print('Three')
else:
    print('Four')

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

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

Expected output:
Four


Actual output:
4


Fixed submission (verdict: Accepted):
int(input())
b = ["One","Two","Three","Four"]
a = list(map(str,input().split(" ")))
print(b[len(set(a))-1])

Problem: p03424
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
n = int(input())

s = set([i for i in input().split()])

print(len(s))

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

Expected output:
Four


Actual output:
4


Fixed submission (verdict: Accepted):
n = int(input())

s = set([i for i in input().split()])

print('Four' if len(s) == 4 else 'Three')

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

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

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

Expected output:
Four


Actual output:
['H', 'W', 'Y', 'N', 'Y', 'W']
Four


Fixed submission (verdict: Accepted):
n = int(input())
s = 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 = list(map(str,input().split()))

if "Y" in S:
    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())

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):
S = input()

ans = "Three"
for i in range(len(S)):
  if S[i] == "Y":
    ans = "Four"
    break
print(ans)

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

Expected output:
Four


Actual output:
Three


Fixed submission (verdict: Accepted):
N = int(input())
S = [s for s in input().split()]

ans = "Three"
for i in range(N):
  if S[i] == "Y":
    ans = "Four"
    break
print(ans)
Problem: p03424
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
if len(set(input().split())) == 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())
if len(set(input().split())) == 3:
    print('Three')
else:
    print('Four')

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

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

Expected output:
Four


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


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

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
kind = list(map(str, input().split()))
if set(kind) == 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())
kind = list(map(str, input().split()))
if len(set(kind)) == 3:
  print("Three")
else:
  print("Four")

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

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

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

Expected output:
Four


Actual output:
['E', 'Y', ' ', 'W', 'O']
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):
flag = 'False'
N = int(input())
c = input().split()
for i in range(0,N):
  if c[i] == 'Y':
    flag = 'True'
if flag:
  print('Four')
else:
  print('Three')

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

Expected output:
Three


Actual output:
Four


Fixed submission (verdict: Accepted):
flag = 0
N = int(input())
c = input().split()
for i in range(0,N):
  if c[i] == 'Y':
    flag = 1
if flag:
  print('Four')
else:
  print('Three')

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
arare = input().split()
print(arare)
y = 0
for i in range(len(arare)):
  if arare[i] == "Y":
    y += 1
    break
if y == 1:
  print("Four")
else:
  print("Three")


Failing test case input:
6
F V Y R Y V

Expected output:
Four


Actual output:
['F', 'V', 'Y', 'R', 'Y', 'V']
Four


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

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

cnt = len(set(S))
print("Three" if cnt == 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())
S = list(input().split())

cnt = len(set(S))
print("Three" if cnt == 3 else "Four")
Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import collections
n = input()
print(len(collections.Counter(input().replace(" ",""))))

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

Expected output:
Four


Actual output:
4


Fixed submission (verdict: Accepted):
import collections
n = input()
ans = len(collections.Counter(input().replace(" ","")))
if ans == 4: print("Four")
else: print("Three")

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

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

Expected output:
Four


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


Fixed submission (verdict: Accepted):
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')

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
input()
print("three" if len(set(map(str, input().split()))) == 3 else "four")

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

Expected output:
Four


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):
a = input().split()
if 'Y' in a:
    print('4')
else:
    print('3')

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

Expected output:
Four


Actual output:
3


Fixed submission (verdict: Accepted):
N = int(input())
a = input().split()
if 'Y' in a:
    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()))
SS=set(S)
length=len(SS)
print("four" if length==4 else "three")

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

Expected output:
Four


Actual output:
four


Fixed submission (verdict: Accepted):
N=int(input())
S=list(map(str,input().split()))
SS=set(S)
length=len(SS)
print("Four" if length==4 else "Three")

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

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

Expected output:
Four


Actual output:
4
Four


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

if len(M) == 3:
  print('Three')
else:
  print('Four')
Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
s = list(input().split())

for i in range(n):
    if s[i] == "Y":
        print("four")
        break
    elif i == n-1:
        print("Tree")

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

Expected output:
Four


Actual output:
four


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

for i in range(n):
    if s[i] == "Y":
        print("Four")
        break
    elif i == n-1:
        print("Three")

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
a = input().split()
if 'Y' in a:
    print('four')
else:
    print('three')

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

Expected output:
Four


Actual output:
four


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

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

color = []

for i in S:
  if i in color:
    pass
  else:
    color.append(i)
    
print(len(color))

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

Expected output:
Four


Actual output:
4


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

color = []

for i in S:
  if i in color:
    pass
  else:
    color.append(i)
    
if len(color) == 4:
  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])
print(len(v))

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

Expected output:
Four


Actual output:
4


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())
a=list(set(input()))
print('Four' if len(a)==4 else 'Three')

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

Expected output:
Four


Actual output:
Three


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):
input()
print(['Tree', 'Four']['Y' in input()])

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

Expected output:
Three

Actual output:
Tree


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())
s = [i for i in input().split()]
s = set(s)
print('four') if len(s)==4 else print('Three')

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

Expected output:
Four


Actual output:
four


Fixed submission (verdict: Accepted):
n = int(input())
s = [i for i in input().split()]
s = set(s)
print('Four') if len(s)==4 else print('Three')

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
L = list(map(str, input().split()))
b = 'three'
for i in range(a):
  if L[i] == 'Y':
    b = 'Four'
    break
print(b)

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

Expected output:
Three

Actual output:
three


Fixed submission (verdict: Accepted):
a = int(input())
L = list(map(str, input().split()))
b = 'Three'
for i in range(a):
  if L[i] == 'Y':
    b = 'Four'
    break
print(b)

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
arare = input().split()

for i in range(N):
    if arare[i] == 'Y':
        print('Three')
        break
else:
    print('Four')

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

Expected output:
Four


Actual output:
Three


Fixed submission (verdict: Accepted):
N = int(input())
arare = input().split()

for i in range(N):
    if arare[i] == 'Y':
        print('Four')
        break
else:
    print('Three')

Problem: p03424
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
items = set(input().split())
results = {3: 'Tree', 4: 'Four'}
if len(items) in results:
    print(results[len(items)])


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())
items = set(input().split())
results = {3: 'Three', 4: 'Four'}
if len(items) in results:
    print(results[len(items)])

Problem: p03424
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
N = int(input())
ans = False
s = list(input().split())
for i in s:
    if(s == "Y"):
        ans = True
if(ans):
    print("Four")
else:
    print("Three")

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

Expected output:
Four


Actual output:
Three


Fixed submission (verdict: Accepted):
N = int(input())
ans = False
s = list(input().split())
for i in s:
    if(i == "Y"):
        ans = True
if(ans):
    print("Four")
else:
    print("Three")
Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
inputbox=int(input())
sum=0
for i in range (inputbox):
  if (i%3==0 or i%5==0):
    pass
  else:
    sum=sum+i
print(sum)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
inputbox=int(input())
sum=0
for i in range (inputbox+1):
  if (i%3==0 or i%5==0):
    pass
  else:
    sum=sum+i
print(sum)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
i = 1
m = 0
for i in range(N+1):
  if not i % 3 == 0 or i % 5 == 0:
    m += i
    i += 1
 
print (m)

Failing test case input:
1110010

Expected output:
328565550022


Actual output:
451778325037


Fixed submission (verdict: Accepted):
N = int(input())
m = 0
for i in range(N+1):
  if not (i % 3 == 0 or i % 5 == 0):
    m += i
 
print (m)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int( input() )

Ans = 0
for i in range( N ):
    if i % 3 != 0 and i % 5 != 0:
        Ans += i
print(Ans) 

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
N = int( input() )

Ans = 0
for i in range( N + 1 ):
    if i % 3 != 0 and i % 5 != 0:
        Ans += i
print( Ans )

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
ans = 0
for i in range(1, N+1):
  if not (i%3==0 or i%5==0 or i%15==0):
    ans += i
print(i)

Failing test case input:
1100110

Expected output:
322730836522


Actual output:
1100110


Fixed submission (verdict: Accepted):
N = int(input())
ans = 0
for i in range(1, N+1):
  if not (i%3==0 or i%5==0 or i%15==0):
    ans += i
print(ans)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
count = 0
for i in range(n):
    if i % 3 != 0 and i % 5 != 0:
        count += i
print(count)


Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
n = int(input())
count = 0
for i in range(1, n+1):
    if i % 3 != 0 and i % 5 != 0:
        count += i
print(count)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x = [i for i in range(1, int(input())) if i%3!=0 and i%5!=0]
print(sum(x))

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
x = [i for i in range(1, int(input())+1) if i%3!=0 and i%5!=0]
print(sum(x))

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import sys
sys.setrecursionlimit(1000000)
n = int(input())
a = 0
for i in range(n):
    if (i % 3 !=0) and (i % 5 !=0):
        a += i
    else:
        continue
print(a)


Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
import sys
sys.setrecursionlimit(1000000)
n = int(input())
a = 0
for i in range(n+1):
    if (i % 3 !=0) and (i % 5 !=0):
        a += i
    else:
        continue
print(a)
Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
ans = 0
for i in range(n):
    if i%3 == 0 or i%5 == 0:
        continue
    else:
        ans += i
print(ans)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
n = int(input())
ans = 0
for i in range(n+1):
    if i%3 == 0 or i%5 == 0:
        continue
    else:
        ans += i
print(ans)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = int(input())
count = 0
for i in range(s):
    if i%3 == 0:
        continue
    elif i % 5 == 0:
        continue
    else:
        count += i
print(count)


Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
s = int(input())
count = 0
for i in range(s+1):
    if i%3 == 0:
        continue
    elif i % 5 == 0:
        continue
    else:
        count += i
    
print(count)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
K=int(input())
fiz=[0]
for i in range(K):
    if i%3==0 or i%5==0:
        k=1
    else:
        fiz.append(i)
print(sum(fiz))

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
K=int(input())
fiz=[0]
for i in range(K+1):
    if i%3==0 or i%5==0:
        k=1
    else:
        fiz.append(i)
print(sum(fiz))

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())
sum=0

for count in range(n):
    if(count%3==0)|(count%5==0):
        continue
    else:
        sum=sum+count
        
print(sum)


Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
n=int(input())
sum=0

for count in range(1,n+1):
    if(count%3==0)|(count%5==0):
        continue
    else:
        sum=sum+count
        
print(sum)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())
x = []
for i in range(a - 1):
    if (i + 1) % 3 == 0:
        if (i + 1) % 5 == 0:
            continue
        else:
            continue
    elif (i + 1) % 5 == 0:
        continue
    else:
        x.append(i + 1)
print(sum(x))

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
a = int(input())
x = []
for i in range(a):
    if (i + 1) % 3 == 0:
        if (i + 1) % 5 == 0:
            continue
        else:
            continue
    elif (i + 1) % 5 == 0:
        continue
    else:
        x.append(i + 1)
print(sum(x))

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())
ans=0

for i in range(n):
    if (i%3!=0 and i%5!=0):
        ans+=i
print(ans)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
n=int(input())
ans=0

for i in range(n):
    if ((i+1)%3!=0 and (i+1)%5!=0):
        ans+=(i+1)
        
print(ans)
Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
if __name__ == "__main__":
    N = int(input())
    i = []
    for num in range(1, N):
        if num % 3 == 0 or num % 5 == 0:
            continue
        else:
            i.append(num)
    print(sum(i))

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
if __name__ == "__main__":
    N = int(input())
    i = []
    for num in range(1, N+1):
        if num % 3 == 0 or num % 5 == 0:
            continue
        else:
            i.append(num)
    print(sum(i))

Problem: p02712
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
def main():
    N = int(input())

    def fizzbuzz(i):
        if i % 3 == 0 and i % 5 == 0:
            return 'FizzBuzz'
        elif i % 3 == 0:
            return 'Fizz'
        elif i % 5 == 0:
            return 'Buzz'
        else:
            return i
    def is_int(v):
        return isinstance(v, int)
    ans = 0
    for k in range(N):
        if is_int(fizzbuzz(k)):
            ans += fizzbuzz(k)
    print(ans)
    return

if __name__ == "__main__":
    main()

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
def main():
    N = int(input())

    def fizzbuzz(i):
        if i % 3 == 0 and i % 5 == 0:
            return 'FizzBuzz'
        elif i % 3 == 0:
            return 'Fizz'
        elif i % 5 == 0:
            return 'Buzz'
        else:
            return i
    def is_int(v):
        return isinstance(v, int)
    ans = 0
    for k in range(1,N+1):
        if is_int(fizzbuzz(k)):
            ans += fizzbuzz(k)
    print(ans)
    return

if __name__ == "__main__":
    main()

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
total = 0
for i in range(n+1):
  if n % 3 != 0 and n % 5 != 0:
    total += n
    
print(total)

Failing test case input:
1110010

Expected output:
328565550022


Actual output:
0


Fixed submission (verdict: Accepted):
n = int(input())
total = 0
for i in range(n+1):
  if i % 3 != 0 and i % 5 != 0:
    total += i
    
print(total)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n =int(input())
count =0
for i in range(1,n):
    if (i %3) !=0:
        if (i %5) !=0:
            count +=i
print(count)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
n =int(input())
count =0
for i in range(1,n+1):
    if i %3 !=0:
        if i %5 !=0:
            count +=i
print(count)
Problem: p02712
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
N = int(input())
 
L = []
for i in range(1, N+1):
    if i % 15==0:
        L.append(i)
    if i%3==0:
        L.append(i)
    elif i%5==0:
        L.append(i)
 
print(sum(L))

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328561110000


Fixed submission (verdict: Accepted):
N = int(input())
 
L = []
for i in range(1, N+1):
    if i % 15 == 0:
        continue
    elif i % 3 == 0:
        continue
        L.append(i)
    elif i % 5 == 0:
        continue
    else:
        L.append(i)
 
print(sum(L))

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())

def check(N):
    if N%3==0:
        return False
    if N%5==0:
        return False
    return True

ans = 0
for i in range(N):
    if check(i):
        ans += i
        
print(ans)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
N = int(input())

def check(N):
    if N%3==0:
        return False
    if N%5==0:
        return False
    return True

ans = 0
for i in range(N+1):
    if check(i):
        ans += i
        
print(ans)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):

import math


text = 0
count = 0


n = int(input())


while count < n:
    if (count % 3 != 0) and (count % 5 != 0):
        text = text + count
    count += 1


print(text)


Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):

text = 0
count = 0


n = int(input())


while count < n:
    count += 1
    if (count % 3 != 0) and (count % 5 != 0):
        text = text + count


print(text)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
num = int(input())
fizz_buzz_sum = 0
for i in range(1, num + 1):
  if i % 3 != 0 or i % 5 != 0:
    fizz_buzz_sum += i

print(fizz_buzz_sum)

Failing test case input:
1110010

Expected output:
328565550022


Actual output:
574991100055


Fixed submission (verdict: Accepted):
num = int(input())
fizz_buzz_sum = 0
for i in range(1, num + 1):
  if i % 3 != 0 and i % 5 != 0:
    fizz_buzz_sum += i

print(fizz_buzz_sum)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())

res = 0
for i in range(1, N):
    if not (i % 3 == 0 or i % 5 == 0):
        res += i
print(res)


Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
N = int(input())

res = 0
for i in range(1, N + 1):
    if i % 3 == 0 or i % 5 == 0:
        continue
    res += i
print(res)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
ans = 0
for i in range(N):
    if i % 3 != 0 and i % 5 != 0:
        ans += i   
print(ans)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
n = int(input())
s = 0
for  i  in range(1,n+1):
  if i % 3 != 0 and i % 5 != 0:
    s += i
print(s)
Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())
b = []

for i in range(a):
    if i % 15 == 0:
      pass
    elif i % 3 == 0:
      pass
    elif i % 5 == 0:
      pass
    else:
      b.append(i)
print(sum(b))


Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
a = int(input())
b = []

for i in range(a+1):
    if i % 3 == 0 and i % 5 == 0:
      pass
    elif i % 3 == 0:
      pass
    elif i % 5 == 0:
      pass
    else:
      b.append(i)
print(sum(b))

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
count = 0
for x in range(1, N+1):
    if x%3==0 or x%5==0:
       count=count+x
print(count)

Failing test case input:
1111010

Expected output:
329158562362


Actual output:
288013603193


Fixed submission (verdict: Accepted):
N = int(input())
count = 0
for x in range(0, N+1):
    if x%3!=0 and x%5!=0:
       count=count+x
print(count)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())
b = []

for i in range(a):
    if i % 15 == 0:
      pass
    elif i % 3 == 0:
      pass
    elif i % 5 == 0:
      pass
    else:
      b.append(i)
    a=a-1
print(sum(b))


Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
a = int(input())
b = []

for i in range(a+1):
    if i % 3 == 0 and i % 5 == 0:
      pass
    elif i % 3 == 0:
      pass
    elif i % 5 == 0:
      pass
    else:
      b.append(i)
print(sum(b))

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
K=int(input())
n=0
for i in range(1,K+1):
    if(i%3==0 and i%5==0):
        pass
    else:
        n+=i

print(n)

Failing test case input:
1011010

Expected output:
272570655022


Actual output:
476999910055


Fixed submission (verdict: Accepted):
K=int(input())
n=0
for i in range(1,K+1):
    if(i%3==0):
        pass
    elif(i%5==0):
        pass
    elif(i%3==0 and i%5==0):
        pass
    else:
        n+=i

print(n)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
ans = 0
for i in range(1,n+1):
  if (n%3 != 0) and (n%5 != 0):
    ans += i
print(ans)


Failing test case input:
1010000

Expected output:
272027003332


Actual output:
0


Fixed submission (verdict: Accepted):
n = int(input())
ans = 0
for i in range(1,n+1):
  if (i%3 != 0) and (i%5 != 0):
    ans += i
print(ans)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int (input())
sum = 0
for i in range (N):
    if i % 3 == 0 and i % 5 == 0: continue
    elif i % 3 == 0: continue
    elif i % 5 == 0: continue
    else: sum += i 
print (sum)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
N = int (input())
sum = 0
for i in range (1, N+1):
    if i % 3 == 0 and i % 5 == 0: continue
    elif i % 3 == 0: continue
    elif i % 5 == 0: continue
    else: sum += i 
print (sum)
Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import math
num = int(input())
syou = math.floor(num/15)
amari = num % 15
sum = 0

list = [1,2,0,4,0,0,7,8,0,0,11,0,13,14,0]
if syou >=1:
    for x in range(syou):
        sum += 60 + 120 * x

    for i in range(amari):
        sum += list[i] + 15 * (syou)

    print(sum)

else:
    for d in range(num):
        sum += list[d]
    print(sum)


Failing test case input:
1111010

Expected output:
329158562362


Actual output:
329160784372


Fixed submission (verdict: Accepted):
import math
num = int(input())
syou = math.floor(num/15)
amari = num % 15
sum = 0

list = [1,2,0,4,0,0,7,8,0,0,11,0,13,14,0]
if syou >=1:
    for x in range(syou):
        sum += 60 + 120 * x


    for i in range(amari):
        if list[i] == 0:
            None
        else:
            sum += list[i] + 15 * (syou)

    print(sum)

else:
    for d in range(num):
        sum += list[d]
    print(sum)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
ans = 0
for v in range(n):
    if ((v % 5) != 0 ) or ((v % 3) != 0):
        if (v % 5) != 0 :
            if (v % 3) != 0:
                ans += v
print(ans)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
n = int(input())
ans = 0
for v in range(n+1):
    if ((v % 5) != 0 ) or ((v % 3) != 0):
        if (v % 5) != 0 :
            if (v % 3) != 0:
                ans += v

print(ans)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())

ans = 0

for i in range(1, n + 1):
  if i % 3 == 0 or i % 5 == 0:
    ans += i

print(ans)

Failing test case input:
1110000

Expected output:
328560000000


Actual output:
287490555000


Fixed submission (verdict: Accepted):
n = int(input())

ans = 0

for i in range(1, n + 1):
  if i % 3 != 0 and i % 5 != 0:
    ans += i

print(ans)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())

ans = 0

for i in range (N):
    if i % 3 != 0 and i % 5 != 0:
        ans += i 
      
print(ans)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
N = int(input())

ans = 0

for i in range (1,N+1):
    if i % 3 != 0 and i % 5 != 0:
        ans += i 
print(ans)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
a = 0
for i in range(n):
    if (i % 3 !=0) and (i % 5 !=0):
        a += i
    else:
        continue
print(a)


Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
import sys
sys.setrecursionlimit(1000000)
n = int(input())
a = 0
for i in range(n+1):
    if (i % 3 !=0) and (i % 5 !=0):
        a += i
    else:
        continue
print(a)