TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
a, b = map(int, input().split())

print(a*b - a - b + a)

a, b = map(int, input().split())

print(a*b - a - b + a)

a, b = map(int, input().split())

print(a*b - a - b + a)

a, b = map(int, input().split())

print(a*b - a - b + a)

a, b = map(int, input().split())

print(a*b - a - b + 1)


a, b = map(int, input().split())

print(a*b - a - b + 1)


a, b = map(int, input().split())

print(a*b - a - b + 1)


a, b = map(int, input().split())

print(a*b - a - b + 1)


Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
def main():
    S = [int(s) for s in list(input())]
    K = int(input())
    for i in S:
        if i != 1:
            print(i)
            break


if __name__ == "__main__":
    main()


def main():
    S = [int(s) for s in list(input())]
    K = int(input())
    for i in S:
        if i != 1:
            print(i)
            break


if __name__ == "__main__":
    main()


def main():
    S = [int(s) for s in list(input())]
    K = int(input())
    for i in S:
        if i != 1:
            print(i)
            break


if __name__ == "__main__":
    main()


def main():
    S = [int(s) for s in list(input())]
    K = int(input())
    for i in S:
        if i != 1:
            print(i)
            break


if __name__ == "__main__":
    main()


def main():
    A, B = map(int, input().split())
    print(A*B-(A+B)+1)

if __name__ == "__main__":
    main()


def main():
    A, B = map(int, input().split())
    print(A*B-(A+B)+1)

if __name__ == "__main__":
    main()


def main():
    A, B = map(int, input().split())
    print(A*B-(A+B)+1)

if __name__ == "__main__":
    main()


def main():
    A, B = map(int, input().split())
    print(A*B-(A+B)+1)

if __name__ == "__main__":
    main()


Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
a, b = map(int, input())
print((a-1)*(b-1))

a, b = map(int, input())
print((a-1)*(b-1))

a, b = map(int, input())
print((a-1)*(b-1))

a, b = map(int, input())
print((a-1)*(b-1))

a, b = map(int, input().split())
print((a-1)*(b-1))

a, b = map(int, input().split())
print((a-1)*(b-1))

a, b = map(int, input().split())
print((a-1)*(b-1))

a, b = map(int, input().split())
print((a-1)*(b-1))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
a=input()
b=int(input())
i=0
t=0
while t<0:
    if a[i]!=1:
        t=1
    else:
        i+=1
if i<b:
    print(a[i])
else:
    print(1)


a=input()
b=int(input())
i=0
t=0
while t<0:
    if a[i]!=1:
        t=1
    else:
        i+=1
if i<b:
    print(a[i])
else:
    print(1)


a=input()
b=int(input())
i=0
t=0
while t<0:
    if a[i]!='1':
        t=1
    else:
        i+=1
if i<b-1:
    print(a[i])
else:
    print('1')



a=input()
b=int(input())
i=0
t=0
while t<0:
    if a[i]!='1':
        t=1
    else:
        i+=1
if i<b-1:
    print(a[i])
else:
    print('1')



a=input()
b=int(input())
i=0
t=0
while t<0:
    if a[i]!='1':
        t=1
    else:
        i+=1
if i<(b-1):
    print(a[i])
else:
    print('1')


a=input()
b=int(input())
i=0
t=0
while t<0:
    if a[i]!='1':
        t=1
    else:
        i+=1
if i<(b-1):
    print(a[i])
else:
    print('1')


a=input()
b=int(input())
i=0
t=0
while t<0:
    if a[i]!=1:
        t=1
    else:
        i+=1
if i<b:
    print(a[i])
else:
    print(1)


a=input()
b=int(input())
i=0
t=0
while t<0:
    if a[i]!=1:
        t=1
    else:
        i+=1
if i<b:
    print(a[i])
else:
    print(1)


a=input()
b=int(input())
i=0
t=0
while t<0:
    if a[i]!='1':
        t=1
    else:
        i+=1
if i<b-1:
    print(a[i])
else:
    print('1')



a=input()
b=int(input())
i=0
t=0
while t<0:
    if a[i]!='1':
        t=1
    else:
        i+=1
if i<b-1:
    print(a[i])
else:
    print('1')



a=input()
b=int(input())
i=0
t=0
while t<0:
    if a[i]!='1':
        t=1
    else:
        i+=1
if i<(b-1):
    print(a[i])
else:
    print('1')


a=input()
b=int(input())
i=0
t=0
while t<0:
    if a[i]!='1':
        t=1
    else:
        i+=1
if i<(b-1):
    print(a[i])
else:
    print('1')


a,b=map(int,input().split())
print((a-1)*(b-1))

a,b=map(int,input().split())
print((a-1)*(b-1))

a,b=map(int,input().split())
print((a-1)*(b-1))

a,b=map(int,input().split())
print((a-1)*(b-1))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
N=int(input())
count=0
answer=0

for i in range(N+1):
	count=0
	if i%2==1:
		for j in range(i):
			if i%(j+1)==0:
				count +=1
		
		if count==8:
			answer += 1
	
	print(answer)

print(answer)

N=int(input())
count=0
answer=0

for i in range(N+1):
	count=0
	if i%2==1:
		for j in range(i):
			if i%(j+1)==0:
				count +=1
		
		if count==8:
			answer += 1
	
	print(answer)

print(answer)

N=int(input())
count=0
answer=0

for i in range(N+1):
	count=0
	if i%2==1:
		for j in range(i):
			if i%(j+1)==0:
				count +=1
		
		if count==8:
			answer += 1
	
	print(answer)

print(answer)

N=int(input())
count=0
answer=0

for i in range(N+1):
	count=0
	if i%2==1:
		for j in range(i):
			if i%(j+1)==0:
				count +=1
		
		if count==8:
			answer += 1
	
	print(answer)

print(answer)

A,B=map(int, input().split())
S=(A-1)*(B-1)
print(S)

A,B=map(int, input().split())
S=(A-1)*(B-1)
print(S)

A,B=map(int, input().split())
S=(A-1)*(B-1)
print(S)

A,B=map(int, input().split())
S=(A-1)*(B-1)
print(S)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
A, B = map(int, input().split())
print("{} {}".format((A - 1)(B - 1)))

A, B = map(int, input().split())
print("{} {}".format((A - 1)(B - 1)))

A = int(input())
B = int(input())
print("{} {}".format((A - 1) * (B - 1)))

A = int(input())
B = int(input())
print("{} {}".format((A - 1) * (B - 1)))

A, B = map(int, input().split())
print(format((A - 1)(B - 1)))

A, B = map(int, input().split())
print(format((A - 1)(B - 1)))

A = int(input())
B = int(input())
print("{} {}".format((A - 1)(B - 1)))

A = int(input())
B = int(input())
print("{} {}".format((A - 1)(B - 1)))

A, B = map(int, input().split())
print("{} {}".format((A - 1)(B - 1)))

A, B = map(int, input().split())
print("{} {}".format((A - 1)(B - 1)))

A = int(input())
B = int(input())
print("{} {}".format((A - 1) * (B - 1)))

A = int(input())
B = int(input())
print("{} {}".format((A - 1) * (B - 1)))

A, B = map(int, input().split())
print(format((A - 1)(B - 1)))

A, B = map(int, input().split())
print(format((A - 1)(B - 1)))

A = int(input())
B = int(input())
print("{} {}".format((A - 1)(B - 1)))

A = int(input())
B = int(input())
print("{} {}".format((A - 1)(B - 1)))

l = list(map(int, input().split()))
print((l[0] - 1 ) * (l[1] - 1))

l = list(map(int, input().split()))
print((l[0] - 1 ) * (l[1] - 1))

l = list(map(int, input().split()))
print((l[0] - 1 ) * (l[1] - 1))

l = list(map(int, input().split()))
print((l[0] - 1 ) * (l[1] - 1))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
# -*- coding: utf-8 -*-

a = int(input())
b = int(input())

print((a-1)*(b-1))

# -*- coding: utf-8 -*-

a = int(input())
b = int(input())

print((a-1)*(b-1))

# -*- coding: utf-8 -*-

a = int(input())
b = int(input())

print((a-1)*(b-1))

# -*- coding: utf-8 -*-

a = int(input())
b = int(input())

print((a-1)*(b-1))

# -*- coding: utf-8 -*-
 
a,b = map(int, input().split())

print((a-1)*(b-1))

# -*- coding: utf-8 -*-
 
a,b = map(int, input().split())

print((a-1)*(b-1))

# -*- coding: utf-8 -*-
 
a,b = map(int, input().split())

print((a-1)*(b-1))

# -*- coding: utf-8 -*-
 
a,b = map(int, input().split())

print((a-1)*(b-1))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
num = input().split(' ')
print((int(num[0]) - 1)＊(int(num[1]) - 1))

num = input().split(' ')
print((int(num[0]) - 1)＊(int(num[1]) - 1))

num = input().split(' ')
print((int(num[0]) - 1)＊(int(num[1]) - 1)

num = input().split(' ')
print((int(num[0]) - 1)＊(int(num[1]) - 1)

num = input().split(' ')
print((int(num[0]) - 1)＊(int(num[1]) - 1))

num = input().split(' ')
print((int(num[0]) - 1)＊(int(num[1]) - 1))

num = input().split(' ')
print((int(num[0]) - 1)＊(int(num[1]) - 1)

num = input().split(' ')
print((int(num[0]) - 1)＊(int(num[1]) - 1)

num = input().split(' ')
a = int(num[0]) - 1
b = int(num[1]) - 1
print(a*b)

num = input().split(' ')
a = int(num[0]) - 1
b = int(num[1]) - 1
print(a*b)

num = input().split(' ')
a = int(num[0]) - 1
b = int(num[1]) - 1
print(a*b)

num = input().split(' ')
a = int(num[0]) - 1
b = int(num[1]) - 1
print(a*b)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
A,B-map(int,input().split())
A=A-1
B=B-1
print(A*B)

A,B-map(int,input().split())
A=A-1
B=B-1
print(A*B)

A,B-map(int,inout().split())
A=A-1
B=B-1
print(A*B)

A,B-map(int,inout().split())
A=A-1
B=B-1
print(A*B)

A,B-map(int,input().split())
A=A-1
B=B-1
print(A*B)

A,B-map(int,input().split())
A=A-1
B=B-1
print(A*B)

A,B-map(int,inout().split())
A=A-1
B=B-1
print(A*B)

A,B-map(int,inout().split())
A=A-1
B=B-1
print(A*B)

A,B=map(int,input().split())
A=A-1
B=B-1
print(A*B)

A,B=map(int,input().split())
A=A-1
B=B-1
print(A*B)

A,B=map(int,input().split())
A=A-1
B=B-1
print(A*B)

A,B=map(int,input().split())
A=A-1
B=B-1
print(A*B)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
def I(): return int(input())
N = I()
ans = 0
for i in range(105,N+1,2):
    count_yakusuu = 0
    for j in range(1,int(i**0.5)+1):
        if i%j==0:
            count_yakusuu += 2
    if count_yakusuu==8:
        ans += 1
print(ans)


def I(): return int(input())
N = I()
ans = 0
for i in range(105,N+1,2):
    count_yakusuu = 0
    for j in range(1,int(i**0.5)+1):
        if i%j==0:
            count_yakusuu += 2
    if count_yakusuu==8:
        ans += 1
print(ans)


def I(): return int(input())
N = I()
ans = 0
for i in range(105,N+1,2):
    count_yakusuu = 0
    for j in range(1,int(i**0.5)+1):
        if i%j==0:
            count_yakusuu += 2
    if count_yakusuu==8:
        ans += 1
print(ans)


def I(): return int(input())
N = I()
ans = 0
for i in range(105,N+1,2):
    count_yakusuu = 0
    for j in range(1,int(i**0.5)+1):
        if i%j==0:
            count_yakusuu += 2
    if count_yakusuu==8:
        ans += 1
print(ans)


A,B = map(int,input().split())
print((A-1)*(B-1))

A,B = map(int,input().split())
print((A-1)*(B-1))

A,B = map(int,input().split())
print((A-1)*(B-1))

A,B = map(int,input().split())
print((A-1)*(B-1))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
print((int(input())-1)*(int(input()-1))

print((int(input())-1)*(int(input()-1))

print((int(input())-1)*(int(input()-1))

print((int(input())-1)*(int(input()-1))

A, B= map(int, input().split())
print((A-1)*(B-1))

A, B= map(int, input().split())
print((A-1)*(B-1))

A, B= map(int, input().split())
print((A-1)*(B-1))

A, B= map(int, input().split())
print((A-1)*(B-1))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
a, b = map(int, input().split())

c = a - 1
d = b - 1
print(a*b)

a, b = map(int, input().split())

c = a - 1
d = b - 1
print(a*b)

a, b = map(int, input().split())

c = a - 1
d = b - 1
print(a*b)

a, b = map(int, input().split())

c = a - 1
d = b - 1
print(a*b)

a, b = map(int, input().split())

c = a - 1
d = b - 1
print(c*d)


a, b = map(int, input().split())

c = a - 1
d = b - 1
print(c*d)


a, b = map(int, input().split())

c = a - 1
d = b - 1
print(c*d)


a, b = map(int, input().split())

c = a - 1
d = b - 1
print(c*d)


Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
a = input()

a = input()

a = input()

a = input()

s = input().split()
a, b = int(s[0]), int(s[1])
print((a - 1) * (b - 1))

s = input().split()
a, b = int(s[0]), int(s[1])
print((a - 1) * (b - 1))

s = input().split()
a, b = int(s[0]), int(s[1])
print((a - 1) * (b - 1))

s = input().split()
a, b = int(s[0]), int(s[1])
print((a - 1) * (b - 1))

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
P = [105, 135, 165, 189, 195, 201]

N = int(input())

for i,p in enumerate(P):
  if N < p:
    print(i)
    break


P = [105, 135, 165, 189, 195, 201]

N = int(input())

for i,p in enumerate(P):
  if N < p:
    print(i)
    break


P = [105, 135, 165, 189, 195, 201]

N = int(input())

for i,p in enumerate(P):
  if N < p:
    print(i)
    break


P = [105, 135, 165, 189, 195, 201]

N = int(input())

for i,p in enumerate(P):
  if N < p:
    print(i)
    break


A, B = map(int, input().split())
print((A-1)*(B-1))

A, B = map(int, input().split())
print((A-1)*(B-1))

A, B = map(int, input().split())
print((A-1)*(B-1))

A, B = map(int, input().split())
print((A-1)*(B-1))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
print((int(input())-1)*(int(input())-1))

print((int(input())-1)*(int(input())-1))

print((int(input())-1)*(int(input())-1))

print((int(input())-1)*(int(input())-1))

a,b=map(int,input().split())
print(a*b-a-b+1)

a,b=map(int,input().split())
print(a*b-a-b+1)

a,b=map(int,input().split())
print(a*b-a-b+1)

a,b=map(int,input().split())
print(a*b-a-b+1)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
a, b = map(int, input().split())
pritn((a-1)*(b-1))

a, b = map(int, input().split())
pritn((a-1)*(b-1))

a, b = map(int, input().split())
pritn((a-1)*(b-1))

a, b = map(int, input().split())
pritn((a-1)*(b-1))

a, b = map(int, input().split())
print((a-1)*(b-1))

a, b = map(int, input().split())
print((a-1)*(b-1))

a, b = map(int, input().split())
print((a-1)*(b-1))

a, b = map(int, input().split())
print((a-1)*(b-1))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
n, m - map(int, input().split())
print((n - 1) * (m - 1))

n, m - map(int, input().split())
print((n - 1) * (m - 1))

n, m - map(int, input().split())
print((n - 1) * (m - 1))

n, m - map(int, input().split())
print((n - 1) * (m - 1))

n, m = map(int, input().split())
print((n - 1) * (m - 1))

n, m = map(int, input().split())
print((n - 1) * (m - 1))

n, m = map(int, input().split())
print((n - 1) * (m - 1))

n, m = map(int, input().split())
print((n - 1) * (m - 1))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
N=int(input())
if N < 105:
    print(0)
elif 105 <= N and N < 135:
    print(1)
elif 135 <= N and N < 165:
    print(2)
elif 165 <= N and N < 189:
    print(3)
elif 189 <= N :
    print(4)

N=int(input())
if N < 105:
    print(0)
elif 105 <= N and N < 135:
    print(1)
elif 135 <= N and N < 165:
    print(2)
elif 165 <= N and N < 189:
    print(3)
elif 189 <= N :
    print(4)

N=int(input())
if N < 105:
    print(0)
elif 105 <= N and N < 135:
    print(1)
elif 135 <= N and N < 165:
    print(2)
elif 165 <= N and N < 189:
    print(3)
elif 189 <= N :
    print(4)

N=int(input())
if N < 105:
    print(0)
elif 105 <= N and N < 135:
    print(1)
elif 135 <= N and N < 165:
    print(2)
elif 165 <= N and N < 189:
    print(3)
elif 189 <= N :
    print(4)

A,B=(int(i) for i in input().split())
print(A*B-A-B+1)

A,B=(int(i) for i in input().split())
print(A*B-A-B+1)

A,B=(int(i) for i in input().split())
print(A*B-A-B+1)

A,B=(int(i) for i in input().split())
print(A*B-A-B+1)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
a,b=map(int,input().split());pirnt(a*b-a-b+1)

a,b=map(int,input().split());pirnt(a*b-a-b+1)

a,b=map(int,input().split());pirnt(a*b-a-b+1)

a,b=map(int,input().split());pirnt(a*b-a-b+1)

a,b=map(int,input().split());print(a*b-a-b+1)

a,b=map(int,input().split());print(a*b-a-b+1)

a,b=map(int,input().split());print(a*b-a-b+1)

a,b=map(int,input().split());print(a*b-a-b+1)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
a, b=map(int, input().split())
print(a*b-a-b-1)

a, b=map(int, input().split())
print(a*b-a-b-1)

a, b=map(int, input().split())
print(a*b-a-b-1)

a, b=map(int, input().split())
print(a*b-a-b-1)

a, b=map(int, input().split())
print(a*b-a-b+1)

a, b=map(int, input().split())
print(a*b-a-b+1)

a, b=map(int, input().split())
print(a*b-a-b+1)

a, b=map(int, input().split())
print(a*b-a-b+1)

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
x,y=map(int,input().split()
print((x-1)*(y-1))

x,y=map(int,input().split()
print((x-1)*(y-1))

x,y=map(int,input().split()
print((x-1)*(y-1))

x,y=map(int,input().split()
print((x-1)*(y-1))

x,y=map(int,input().split())
print((x-1)*(y-1))


x,y=map(int,input().split())
print((x-1)*(y-1))


x,y=map(int,input().split())
print((x-1)*(y-1))


x,y=map(int,input().split())
print((x-1)*(y-1))


Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
A = int(input())
B = int(input())
print(A*B-(A+B-1))

A = int(input())
B = int(input())
print(A*B-(A+B-1))

A = int(input())
B = int(input())
print(A*B-(A+B-1))

A = int(input())
B = int(input())
print(A*B-(A+B-1))

A,B = map(int,input().split())
print((A-1)*(B-1))

A,B = map(int,input().split())
print((A-1)*(B-1))

A,B = map(int,input().split())
print((A-1)*(B-1))

A,B = map(int,input().split())
print((A-1)*(B-1))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
a = int(input())-1
b = int(input())-1
print(a*b)

a = int(input())-1
b = int(input())-1
print(a*b)

a = int(input())-1
b = int(input())-1
print(a*b)

a = int(input())-1
b = int(input())-1
print(a*b)

a, b = list(map(lambda x: int(x)-1, input().split()))
print(a*b)

a, b = list(map(lambda x: int(x)-1, input().split()))
print(a*b)

a, b = list(map(lambda x: int(x)-1, input().split()))
print(a*b)

a, b = list(map(lambda x: int(x)-1, input().split()))
print(a*b)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
a = list(map(int, input().split()))
print((n[0]-1)*(n[1]-1))

a = list(map(int, input().split()))
print((n[0]-1)*(n[1]-1))

a = list(map(int, input().split()))
print((n[0]-1)*(n[1]-1))

a = list(map(int, input().split()))
print((n[0]-1)*(n[1]-1))

a = list(map(int, input().split()))
print((a[0]-1)*(a[1]-1))

a = list(map(int, input().split()))
print((a[0]-1)*(a[1]-1))

a = list(map(int, input().split()))
print((a[0]-1)*(a[1]-1))

a = list(map(int, input().split()))
print((a[0]-1)*(a[1]-1))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
a = int(input())
b = int(input())

print((a-1)*(b-1))

a = int(input())
b = int(input())

print((a-1)*(b-1))

a = int(input())
b = int(input())

print((a-1)*(b-1))

a = int(input())
b = int(input())

print((a-1)*(b-1))

a,b = map(int, input().split())
print((a-1)*(b-1))

a,b = map(int, input().split())
print((a-1)*(b-1))

a,b = map(int, input().split())
print((a-1)*(b-1))

a,b = map(int, input().split())
print((a-1)*(b-1))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
string = input()
a, b = string.split(' ')[0], string.split(' ')[1]
result = a * b - (a + b -1)
print(result)

string = input()
a, b = string.split(' ')[0], string.split(' ')[1]
result = a * b - (a + b -1)
print(result)

string = input()
a, b = string.split(' ')[0], string.split(' ')[1]
result = a * b - (a + b -1)
print(result)

string = input()
a, b = string.split(' ')[0], string.split(' ')[1]
result = a * b - (a + b -1)
print(result)

string = input()
a, b = int(string.split(' ')[0]), int(string.split(' ')[1])
result = a * b - (a + b -1)
print(result)

string = input()
a, b = int(string.split(' ')[0]), int(string.split(' ')[1])
result = a * b - (a + b -1)
print(result)

string = input()
a, b = int(string.split(' ')[0]), int(string.split(' ')[1])
result = a * b - (a + b -1)
print(result)

string = input()
a, b = int(string.split(' ')[0]), int(string.split(' ')[1])
result = a * b - (a + b -1)
print(result)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
#n = int(input())
a,b = map(str,input().split())
#A = list(map(int,input().split()))
ans = (a-1)*(b-1)

print(ans)

#n = int(input())
a,b = map(str,input().split())
#A = list(map(int,input().split()))
ans = (a-1)*(b-1)

print(ans)

#n = int(input())
a,b = map(str,input().split())
#A = list(map(int,input().split()))
ans = (a-1)*(b-1)

print(ans)

#n = int(input())
a,b = map(str,input().split())
#A = list(map(int,input().split()))
ans = (a-1)*(b-1)

print(ans)

a,b = map(int,input().split())
#A = list(map(int,input().split()))
ans = (a-1)*(b-1)
 
print(ans)

a,b = map(int,input().split())
#A = list(map(int,input().split()))
ans = (a-1)*(b-1)
 
print(ans)

a,b = map(int,input().split())
#A = list(map(int,input().split()))
ans = (a-1)*(b-1)
 
print(ans)

a,b = map(int,input().split())
#A = list(map(int,input().split()))
ans = (a-1)*(b-1)
 
print(ans)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
a,b=map(int,input().split())
print(a*b-a-b-1)

a,b=map(int,input().split())
print(a*b-a-b-1)

a,b=map(int,input().split())
print(a*b-a-b-1)

a,b=map(int,input().split())
print(a*b-a-b-1)

a,b=map(int,input().split())
print(a*b-a-b+1)


a,b=map(int,input().split())
print(a*b-a-b+1)


a,b=map(int,input().split())
print(a*b-a-b+1)


a,b=map(int,input().split())
print(a*b-a-b+1)


Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
N = int(input())
ans = 0

for i in range(1, N + 1):
    if i % 2 == 1:
        count = 0
        for j in range(1, i + 1, 2):
            if i % j == 0:
                count += 1
        if count == 8:
            ans += 1

print(ans)

N = int(input())
ans = 0

for i in range(1, N + 1):
    if i % 2 == 1:
        count = 0
        for j in range(1, i + 1, 2):
            if i % j == 0:
                count += 1
        if count == 8:
            ans += 1

print(ans)

N = int(input())
ans = 0

for i in range(1, N + 1):
    if i % 2 == 1:
        count = 0
        for j in range(1, i + 1, 2):
            if i % j == 0:
                count += 1
        if count == 8:
            ans += 1

print(ans)

N = int(input())
ans = 0

for i in range(1, N + 1):
    if i % 2 == 1:
        count = 0
        for j in range(1, i + 1, 2):
            if i % j == 0:
                count += 1
        if count == 8:
            ans += 1

print(ans)

a, b = map(int, input().split())

print((a-1)*(b-1))

a, b = map(int, input().split())

print((a-1)*(b-1))

a, b = map(int, input().split())

print((a-1)*(b-1))

a, b = map(int, input().split())

print((a-1)*(b-1))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
a = int(input())
b = int(input())

print(a*b -(a+b-1))


a = int(input())
b = int(input())

print(a*b -(a+b-1))


a = int(input())
b = int(input())

print(a*b -(a+b-1))


a = int(input())
b = int(input())

print(a*b -(a+b-1))


a,b = map(int,input().split())
print(a*b -(a+b-1))


a,b = map(int,input().split())
print(a*b -(a+b-1))


a,b = map(int,input().split())
print(a*b -(a+b-1))


a,b = map(int,input().split())
print(a*b -(a+b-1))


Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
a,b = map(int,input().split)
print((a-1)*(b-1))

a,b = map(int,input().split)
print((a-1)*(b-1))

a,b = map(int,input().split)
print((a-1)*(b-1))

a,b = map(int,input().split)
print((a-1)*(b-1))

a,b = map(int,input().split())
print((a-1)*(b-1))

a,b = map(int,input().split())
print((a-1)*(b-1))

a,b = map(int,input().split())
print((a-1)*(b-1))

a,b = map(int,input().split())
print((a-1)*(b-1))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
a,b = input().split()
print((a-1)*(b-1))

a,b = input().split()
print((a-1)*(b-1))

a,b = input().split()
print((a-1)*(b-1))

a,b = input().split()
print((a-1)*(b-1))

a,b = [int(x) for x in input().split()]
print((a-1)*(b-1))

a,b = [int(x) for x in input().split()]
print((a-1)*(b-1))

a,b = [int(x) for x in input().split()]
print((a-1)*(b-1))

a,b = [int(x) for x in input().split()]
print((a-1)*(b-1))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
N = int(input())
ans = 0


for i in range(1, N+1, 2):
    cnt = 0
    
    for j in range(1, i+1):
        if j % i == 0:
            cnt += 1
        if cnt == 8:
            ans += 1

print(ans)
        



N = int(input())
ans = 0


for i in range(1, N+1, 2):
    cnt = 0
    
    for j in range(1, i+1):
        if j % i == 0:
            cnt += 1
        if cnt == 8:
            ans += 1

print(ans)
        



N = int(input())
ans = 0


for i in range(1, N+1, 2):
    cnt = 0
    
    for j in range(1, i+1):
        if j % i == 0:
            cnt += 1
        
    if cnt == 8:
        ans += 1

print(ans)
        



N = int(input())
ans = 0


for i in range(1, N+1, 2):
    cnt = 0
    
    for j in range(1, i+1):
        if j % i == 0:
            cnt += 1
        
    if cnt == 8:
        ans += 1

print(ans)
        



N = int(input())
ans = 0


for i in range(1, N+1, 2):
    cnt = 0
    
    for j in range(1, i+1):
        if j % i == 0:
            cnt += 1
        if cnt == 8:
            ans += 1

print(ans)
        



N = int(input())
ans = 0


for i in range(1, N+1, 2):
    cnt = 0
    
    for j in range(1, i+1):
        if j % i == 0:
            cnt += 1
        if cnt == 8:
            ans += 1

print(ans)
        



N = int(input())
ans = 0


for i in range(1, N+1, 2):
    cnt = 0
    
    for j in range(1, i+1):
        if j % i == 0:
            cnt += 1
        
    if cnt == 8:
        ans += 1

print(ans)
        



N = int(input())
ans = 0


for i in range(1, N+1, 2):
    cnt = 0
    
    for j in range(1, i+1):
        if j % i == 0:
            cnt += 1
        
    if cnt == 8:
        ans += 1

print(ans)
        



A,B = map(int, input().split())

print((A-1) * (B-1))

A,B = map(int, input().split())

print((A-1) * (B-1))

A,B = map(int, input().split())

print((A-1) * (B-1))

A,B = map(int, input().split())

print((A-1) * (B-1))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
import sys

def square():
    argvs=sys.argv
    print( int(argvs[1])*int(argvs[2])-int(argvs[1])-int(argvs[2])+1)

square()


import sys

def square():
    argvs=sys.argv
    print( int(argvs[1])*int(argvs[2])-int(argvs[1])-int(argvs[2])+1)

square()


import sys

def square():
    argvs=sys.argv
    print( int(argvs[1])*int(argvs[2])-int(argvs[1])-int(argvs[2])+1)

square()


import sys

def square():
    argvs=sys.argv
    print( int(argvs[1])*int(argvs[2])-int(argvs[1])-int(argvs[2])+1)

square()


def square():
    x,y=[int(i) for i in input().split()]
    print( x*y-x-y+1)

square()

def square():
    x,y=[int(i) for i in input().split()]
    print( x*y-x-y+1)

square()

def square():
    x,y=[int(i) for i in input().split()]
    print( x*y-x-y+1)

square()

def square():
    x,y=[int(i) for i in input().split()]
    print( x*y-x-y+1)

square()

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
a, b = map (int, input().split())

print(a + b - 1)

a, b = map (int, input().split())

print(a + b - 1)

a, b = map (int, input().split())

print(a + b - 1)

a, b = map (int, input().split())

print(a + b - 1)

a, b = map(int, input().split())

print(a * b - (a + b - 1))

a, b = map(int, input().split())

print(a * b - (a + b - 1))

a, b = map(int, input().split())

print(a * b - (a + b - 1))

a, b = map(int, input().split())

print(a * b - (a + b - 1))

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
n = int(input())
lst = [135, 189, 105, 165, 195]
tmp = 0

for i in range(5):
    if n<=lst[i]:
        tmp += 1

print(tmp)

n = int(input())
lst = [135, 189, 105, 165, 195]
tmp = 0

for i in range(5):
    if n<=lst[i]:
        tmp += 1

print(tmp)

n = int(input())
lst = [135, 189, 105, 165, 195]
tmp = 0

for i in range(5):
    if n<=lst[i]:
        tmp += 1

print(tmp)

n = int(input())
lst = [135, 189, 105, 165, 195]
tmp = 0

for i in range(5):
    if n<=lst[i]:
        tmp += 1

print(tmp)

a, b = map(int, input().split())
print(a * b - a - b + 1)

a, b = map(int, input().split())
print(a * b - a - b + 1)

a, b = map(int, input().split())
print(a * b - a - b + 1)

a, b = map(int, input().split())
print(a * b - a - b + 1)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
n = int(input())

count = 0
for i in range(1, n+1, 2):
    n_divisor = 1
    for j in range(2, n+1):
        if i%j == 0:
            n_divisor += 1
    if n_divisor == 8:
        count += 1

print(count)

n = int(input())

count = 0
for i in range(1, n+1, 2):
    n_divisor = 1
    for j in range(2, n+1):
        if i%j == 0:
            n_divisor += 1
    if n_divisor == 8:
        count += 1

print(count)

n = int(input())

count = 0
for i in range(1, n+1, 2):
    n_divisor = 1
    for j in range(2, n+1):
        if i%j == 0:
            n_divisor += 1
    if n_divisor == 8:
        count += 1

print(count)

n = int(input())

count = 0
for i in range(1, n+1, 2):
    n_divisor = 1
    for j in range(2, n+1):
        if i%j == 0:
            n_divisor += 1
    if n_divisor == 8:
        count += 1

print(count)

A, B = map(int, input().split())
s = (A * B) - (A + B - 1)
print(s)

A, B = map(int, input().split())
s = (A * B) - (A + B - 1)
print(s)

A, B = map(int, input().split())
s = (A * B) - (A + B - 1)
print(s)

A, B = map(int, input().split())
s = (A * B) - (A + B - 1)
print(s)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
print((int(input())-1)*(int(input())-1))

print((int(input())-1)*(int(input())-1))

S, T = map(int, input().split())
print(˜-S*˜-T)

S, T = map(int, input().split())
print(˜-S*˜-T)

S, T = map(int, input().split())
print(~-S*~-T)

S, T = map(int, input().split())
print(~-S*~-T)

print((int(input())-1)*(int(input())-1))

print((int(input())-1)*(int(input())-1))

S, T = map(int, input().split())
print(-˜S*-˜T)

S, T = map(int, input().split())
print(-˜S*-˜T)

print((int(input)-1)*(int(input)-1))

print((int(input)-1)*(int(input)-1))

print((int(input())-1)*(int(input())-1))

print((int(input())-1)*(int(input())-1))

S, T = map(int, input().split())
print(˜-S*˜-T)

S, T = map(int, input().split())
print(˜-S*˜-T)

S, T = map(int, input().split())
print(~-S*~-T)

S, T = map(int, input().split())
print(~-S*~-T)

print((int(input())-1)*(int(input())-1))

print((int(input())-1)*(int(input())-1))

S, T = map(int, input().split())
print(-˜S*-˜T)

S, T = map(int, input().split())
print(-˜S*-˜T)

print((int(input)-1)*(int(input)-1))

print((int(input)-1)*(int(input)-1))

S, T = map(int, input().split())
print(~-S*~-T)

S, T = map(int, input().split())
print(~-S*~-T)

S, T = map(int, input().split())
print(~-S*~-T)

S, T = map(int, input().split())
print(~-S*~-T)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
a=int(input())
b=[3,5,7,11,13,17,19]
c=d=0
if a<105:a=104
for i in range(103,a):
    for j in b:
        if a%j==0:c+=1
    if c==3:d+=1
    c=0
print(d)

a=int(input())
b=[3,5,7,11,13,17,19]
c=d=0
if a<105:a=104
for i in range(103,a):
    for j in b:
        if a%j==0:c+=1
    if c==3:d+=1
    c=0
print(d)

a=int(input())
b=[3,5,7,9,11,13,15,17,19]
c=d=0
if a<105:a=105
for i in range(104,a):
    for j in b:
        if a%j==0:c+=1
    if c==3:d+=1
    c=0
print(d)

a=int(input())
b=[3,5,7,9,11,13,15,17,19]
c=d=0
if a<105:a=105
for i in range(104,a):
    for j in b:
        if a%j==0:c+=1
    if c==3:d+=1
    c=0
print(d)

a=int(input())
b=[3,5,7,11,13,17,19]
c=d=0
if a<105:a=104
for i in range(103,a):
    for j in b:
        if a%j==0:c+=1
    if c==3:d+=1
    c=0
print(d)

a=int(input())
b=[3,5,7,11,13,17,19]
c=d=0
if a<105:a=104
for i in range(103,a):
    for j in b:
        if a%j==0:c+=1
    if c==3:d+=1
    c=0
print(d)

a=int(input())
b=[3,5,7,9,11,13,15,17,19]
c=d=0
if a<105:a=105
for i in range(104,a):
    for j in b:
        if a%j==0:c+=1
    if c==3:d+=1
    c=0
print(d)

a=int(input())
b=[3,5,7,9,11,13,15,17,19]
c=d=0
if a<105:a=105
for i in range(104,a):
    for j in b:
        if a%j==0:c+=1
    if c==3:d+=1
    c=0
print(d)

a,b=map(int,input().split())
print((a-1)*(b-1))

a,b=map(int,input().split())
print((a-1)*(b-1))

a,b=map(int,input().split())
print((a-1)*(b-1))

a,b=map(int,input().split())
print((a-1)*(b-1))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
a,b=map(int,input(,sprit()))
print((a-1)(b-1))

a,b=map(int,input(,sprit()))
print((a-1)(b-1))

a,b=map(int,input(sprit()))
print((a-1)(b-1))

a,b=map(int,input(sprit()))
print((a-1)(b-1))

a,b=map(int,input(,sprit()))
print((a-1)(b-1))

a,b=map(int,input(,sprit()))
print((a-1)(b-1))

a,b=map(int,input(sprit()))
print((a-1)(b-1))

a,b=map(int,input(sprit()))
print((a-1)(b-1))

a,b=map(int,input().split())
print((a-1)*(b-1))

a,b=map(int,input().split())
print((a-1)*(b-1))

a,b=map(int,input().split())
print((a-1)*(b-1))

a,b=map(int,input().split())
print((a-1)*(b-1))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted