ZhenlongDai/ACPR huggingface dataset:
Problem: p02755
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
import math
A,B=map(int,input().split())
N=0
flag=0
while N<100 and flag==0:
  N += 1
  a = math.floor(N * 0.08)
  b = math.floor(N * 0.1)
  print(N,a,b)
  if a==A and b==B:
    flag = 1
    
if flag==1:
  print(N)
else:
  print(-1)

Failing test case input:
35 106

Expected output:
-1


Actual output:
1 0 0
2 0 0
3 0 0
4 0 0
5 0 0
6 0 0
7 0 0
8 0 0
9 0 0
10 0 1
11 0 1
12 0 1
13 1 1
14 1 1
15 1 1
16 1 1
17 1 1
18 1 1
19 1 1
20 1 2
21 1 2
22 1 2
23 1 2
24 1 2
25 2 2
26 2 2
27 2 2
28 2 2
29 2 2
30 2 3
31 2 3
32 2 3
33 2 3
34 2 3
35 2 3
36 2 3
37 2 3
38 3 3
39 3 3
40 3 4
41 3 4
42 3 4
43 3 4
44 3 4
45 3 4
46 3 4
47 3 4
48 3 4
49 3 4
50 4 5
51 4 5
52 4 5
53 4 5
54 4 5
55 4 5
56 4 5
57 4 5
58 4 5
59 4 5
60 4 6
61 4 6
62 4 6
63 5 6
64 5 6
65 5 6
66 5 6
67 5 6
68 5 6
69 5 6
70 5 7
71 5 7
72 5 7
73 5 7
74 5 7
75 6 7
76 6 7
77 6 7
78 6 7
79 6 7
80 6 8
81 6 8
82 6 8
83 6 8
84 6 8
85 6 8
86 6 8
87 6 8
88 7 8
89 7 8
90 7 9
91 7 9
92 7 9
93 7 9
94 7 9
95 7 9
96 7 9
97 7 9
98 7 9
99 7 9
100 8 10
-1


Fixed submission (verdict: Accepted):
A,B=map(int,input().split())
N=0
flag=0
while N<1250 and flag==0:
  N += 1
  a = int(N * 0.08 
  b = int(N * 0.1 
  
  if a==A and b==B:
    flag = 1
    
if flag==1:
  print(N)
else:
  print(-1)

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = input().split()
a = int(a)
b = int(b)
c = 0
for i in range(101):
    d = c*0.08
    e = c*0.1
    d = int(d)
    e = int(e)
    if d == a and e == b:
        print(c)
        break
    elif c == 100:
        print('-1')
    else:
        c += 1

Failing test case input:
10 13

Expected output:
130


Actual output:
-1


Fixed submission (verdict: Accepted):
a,b = input().split()
a = int(a)
b = int(b)
c = 0
for i in range(10000):
    d = c*0.08
    e = c*0.1
    d = int(d)
    e = int(e)
    if d == a and e == b:
        print(c)
        break
    elif c == 9999:
        print('-1')
        break
    else:
        c += 1

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())
for i in range(10**5):
  if int(i*0.08)==a and int(i*0.1)==b:
    print(i)
    exit()
print(-1)
print(int(25*0.1))

Failing test case input:
3 99

Expected output:
-1


Actual output:
-1
2


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
for i in range(10**5):
  if int(i*0.08)==a and int(i*0.1)==b:
    print(i)
    exit()
print(-1)

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
a, b = map(int, input().split(" "))
for n in range(100):
    n += 1
    if math.floor(n*0.08) == a and math.floor(n*0.1) == b:
        print(n)
        break
    else:
        if n == 100:
            print(-1)


Failing test case input:
12 15

Expected output:
150


Actual output:
-1


Fixed submission (verdict: Accepted):
import math
a, b = map(int, input().split(" "))
for n in range(100000):
    n += 1
    if math.floor(n*0.08) == a and math.floor(n*0.1) == b:
        print(n)
        break
    else:
        if n == 100000:
            print(-1)
Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=list(map(int,input().split()))
a=0
b=0
c=-1
for i in range(1,101):
  a=int(i*0.08)
  b=int(i*0.1)
  if a==s[0]:
    if b==s[1]:
      c=i
      break
print(c)

Failing test case input:
10 13

Expected output:
130


Actual output:
-1


Fixed submission (verdict: Accepted):
s=list(map(int,input().split()))
a=0
b=0
c=-1
for i in range(1,10000):
  a=int(i*0.08)
  b=int(i*0.1)
  if a==s[0]:
    if b==s[1]:
      c=i
      break
print(c)

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())

ans = -1
for i in range(1001):
    if int(i*0.08) == a and int(i*0.1) == b:
        ans = i
        break
print(i)

Failing test case input:
290 12

Expected output:
-1


Actual output:
1000


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())

ans = -1
for i in range(1001):
    if int(i*0.08) == a and int(i*0.1) == b:
        ans = i
        break
print(ans)

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
tax_eight, tax_ten = map(int, input().split())
min_eight_price = tax_eight / 0.08
max_eight_price = (tax_eight + 1) / 0.08
min_ten_price = tax_ten * 10
max_ten_price = (tax_ten + 1) * 10
min_price = max(min_eight_price, min_ten_price)
max_price = min(max_eight_price, max_ten_price)
if max_price <= min_price:
    print("-1")
else:
    print(min_price)

Failing test case input:
12 15

Expected output:
150


Actual output:
150.0


Fixed submission (verdict: Accepted):
import math
tax_eight, tax_ten = map(int, input().split())
min_eight_price = math.ceil(tax_eight / 0.08)
max_eight_price = math.floor((tax_eight + 1) / 0.08 - 1)
min_ten_price = tax_ten / 0.1 
max_ten_price = (tax_ten + 1) / 0.1 - 1
min_price = max(min_eight_price, min_ten_price)
max_price = min(max_eight_price, max_ten_price)
if max_price < min_price:
    print(-1)
else:
    print(int(min_price))

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())
import math
for i in range(1,120):
    if math.floor(i*0.08) == a and math.floor(i*0.1) == b and a <= b:
        print(i)
        exit()
print(-1)

Failing test case input:
12 16

Expected output:
160


Actual output:
-1


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
import math
for i in range(1,1200):
    if math.floor(i*0.08) == a and math.floor(i*0.1) == b and (a <= b):
        print(i)
        exit()
print(-1)
Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
a,b = map(int,input().split())

tax_8 = 0.08
tax_10 = 0.1

li = [99999999999]
for i in range(1,101):
    temp = math.floor(i *tax_8)
    temp2 = math.floor(i*tax_10)
    if temp == a and temp2 == b:
        li.append(i)
li.sort()
if li[0] == 99999999999:
    print("-1")
else:
    print(li[0])

Failing test case input:
12 15

Expected output:
150


Actual output:
-1


Fixed submission (verdict: Accepted):
import math
a,b = map(int,input().split())

tax_8 = 0.08
tax_10 = 0.1

li = [99999999999]
for i in range(1,1010):
    temp = math.floor(i *tax_8)
    temp2 = math.floor(i*tax_10)
    if temp == a and temp2 == b:
        li.append(i)
li.sort()
if li[0] == 99999999999:
    print("-1")
else:
    print(li[0])

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from math import ceil, floor

A, B = map(int, input().split())
for i in range(100):
    j = i+1
    if floor(j*0.08) ==A and floor(j*0.1)==B:
        print(j)
        break
else:
    print(-1)

Failing test case input:
12 16

Expected output:
160


Actual output:
-1


Fixed submission (verdict: Accepted):
from math import ceil, floor

A, B = map(int, input().split())
for i in range(10000):
    j = i+1
    if floor(j*0.08) ==A and floor(j*0.1)==B:
        print(j)
        break
else:
    print(-1)

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
for i in range(b*10,b*10+10):
    if i*0.08 == a:
        print(i)
        break
else:
    print(-1)

Failing test case input:
12 16

Expected output:
160


Actual output:
-1


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
for i in range(b*10,b*10+9):
    if int(i*0.08) == a:
        print(i)
        break
else:
    print(-1)

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math

A, B = map(lambda x: int(x), input().split(" "))

result = -1
for i in range(101):
    if math.floor(i*0.08) == A and math.floor(i*0.1) == B:
        result = i
        break

print(result)


Failing test case input:
12 15

Expected output:
150


Actual output:
-1


Fixed submission (verdict: Accepted):
import math

A, B = map(lambda x: int(x), input().split(" "))













result = -1
for i in range(1, 1263):
    if math.floor(i*0.08) == A and math.floor(i*0.1) == B:
        result = int(i)
        break

print(result)

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
a,b=map(int,input().split())
f=-1
for i in range(1000):
    if math.floor(i*0.08)==a and math.floor(i*0.1):
        f=i
        break
print(f)


Failing test case input:
19 99

Expected output:
-1

Actual output:
238


Fixed submission (verdict: Accepted):
import math
a,b=map(int,input().split())
f=0
for i in range(1,1001):
    if math.floor(i*0.08)==a and math.floor(i*0.1)==b:
        f=i
        break;
if f==0:
    print(-1)
else:
    print(f)
Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
b,a = map(int,input().split())
ans = a*10
for i in range(11):
    if i == 10:
        ans = -1
        break
    if int(ans*0.08) == b:
        break
    ans += 1
    print(ans)
print(ans)

Failing test case input:
58 106

Expected output:
-1


Actual output:
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
-1


Fixed submission (verdict: Accepted):
b,a = map(int,input().split())
ans = a*10
for i in range(11):
    if i == 10:
        ans = -1
        break
    if int(ans*0.08) == b:
        break
    ans += 1
print(ans)

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

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

for i in range(1,10001):
    num1 = int(i*decimal.Decimal("0.08"))
    num2 = int(i*decimal.Decimal("0.1"))
    if num1 == a and num2 == b:
        print(i)
        break
    if i*decimal.Decimal("0.08") > a:
        print("-1")
        break

Failing test case input:
12 16

Expected output:
160


Actual output:
-1


Fixed submission (verdict: Accepted):

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

for i in range(1,10001):
    num1 = int(i*decimal.Decimal("0.08"))
    num2 = int(i*decimal.Decimal("0.1"))
    if num1 == a and num2 == b:
        print(i)
        break
    if int(i*decimal.Decimal("0.08")) > a:
        print("-1")
        break

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int, input().split())
 
i=1
while i<=10000:
  if i*0.08==A and i*0.1==B:
    print(i)
    exit()
  i+=1
print(-1)

Failing test case input:
12 16

Expected output:
160


Actual output:
-1


Fixed submission (verdict: Accepted):
A,B = map(int,input().split())
i=1
while i<=10000:
  if (int(i * 0.08) == A) & (int(i * 0.10) == B):
    print(i)
    exit()
  i+=1
print(-1)

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = list(map(int,input().split()))
found = False
for i in range(1009):
    A_tax = int(i * 0.08)
    B_tax = int(i * 0.10)
    if A == A_tax and B == B_tax:
        print(i)
        found = True
if not found:
    print("-1")

Failing test case input:
12 15

Expected output:
150


Actual output:
150
151
152
153
154
155
156
157
158
159


Fixed submission (verdict: Accepted):
A,B = list(map(int,input().split()))
found = False
for i in range(1010):
    A_tax = int(i * 0.08)
    B_tax = int(i * 0.10)
    if A == A_tax and B == B_tax:
        print(i)
        found = True
        break
if not found:
    print("-1")
Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int, input().split())

minA = A / 0.08
maxA = (A+1) / 0.08
minB = B / 0.1
maxB = (B+1) / 0.1

if minB <= minA and minA <= maxB: print(int(minA))
elif minA <= maxB and maxB <= maxA: print(int(maxB))
else: print("-1")

Failing test case input:
10 13

Expected output:
130


Actual output:
-1


Fixed submission (verdict: Accepted):
A, B = map(int, input().split())

minA = A / 0.08
maxA = (A+1) / 0.08
minB = B / 0.1
maxB = (B+1) / 0.1

if minB <= minA and minA < maxB: print(int(minA) + (1 if minA > int(minA) else 0))
elif minA <= minB and minB < maxA: print(int(minB) + (1 if minB > int(minB) else 0))
else: print("-1")

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
a,b = map(int,input().split())
ans = 1
while True:
    if math.floor(ans*0.08) == a:
        while ans*0.08 == a:
            if math.floor(ans*0.1) == b:
                print(ans)
                exit()
            ans+=1
        print(-1)
        exit()
    ans+=1

Failing test case input:
12 16

Expected output:
160


Actual output:
-1


Fixed submission (verdict: Accepted):
import math
a,b = map(int,input().split())
ans = 1
while True:
    if math.floor(ans*0.08) == a:
        while math.floor(ans*0.08) == a:
            if math.floor(ans*0.1) == b:
                print(ans)
                exit()
            ans+=1
        print(-1)
        exit()
    ans+=1

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
s = input().split(" ")
A = int(s[0])
B = int(s[1])

for i in range(101):
    e = math.floor(i * 0.08)
    t = math.floor(i * 0.1)

    if e == A and t == B:
        print(i)
        break
else:
    print(-1)

Failing test case input:
12 16

Expected output:
160


Actual output:
-1


Fixed submission (verdict: Accepted):
import math
s = input().split(" ")
A = int(s[0])
B = int(s[1])

for i in range(1001):
    e = math.floor(i * 0.08)
    t = math.floor(i * 0.1)

    if e == A and t == B:
        print(i)
        break
else:
    print(-1)

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int,input().split())

for i in range(10000):
  if i * 0.08 == A and i * 0.1 == B:
    print(i)
    exit()
    
print(-1)

Failing test case input:
10 13

Expected output:
130


Actual output:
-1


Fixed submission (verdict: Accepted):
A, B = map(int,input().split())

for i in range(10000):
  if int(i * 0.08) == A and int(i * 0.1) == B:
    print(i)
    exit()
    
print(-1)

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int, input().split())
 
i=1
while i<=10000:
  if (int(i*0.08==A)) and (int(i*0.1==B)):
    print(i)
    exit()
  i+=1
print(-1)

Failing test case input:
10 13

Expected output:
130


Actual output:
-1


Fixed submission (verdict: Accepted):
A,B = map(int,input().split())
i=1
while i<=10000:
  if (int(i * 0.08) == A) & (int(i * 0.10) == B):
    print(i)
    exit()
  i+=1
print(-1)
Problem: p02755
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A, B = map(int, input().split())
l = []
for i in range(1, 10000):
  a = i * 0.08
  b = i * 0.1
  if a > A and b > B:
    break
  elif a < A+1 and B < b+1:
    l.append(i)

  
if len(l) == 0:
  print(-1)
else:
  print(max(l))

Failing test case input:
134 32

Expected output:
-1


Actual output:
1675


Fixed submission (verdict: Accepted):
A, B = map(int, input().split())
l = []
for i in range(1, 10000):
  a = i * 0.08
  b = i * 0.1
  if a > A+1 and b > B+1:
    break
  elif A <= a < A+1 and B <= b < B+1:
    l.append(i)

if len(l) == 0:
  print(-1)
else:
  print(min(l))

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
input = sys.stdin.readline
A, B = map(int, input().split())

xmin = 1
while xmin < 100*A:
    if int(0.08*xmin) == A and int(0.1*xmin) == B :
        print(int(xmin))
        exit()
    elif int(0.08*xmin) < A or int(0.1*xmin) < B :
        xmin += 1
    else :
        print(-1)
        exit()



Failing test case input:
3 99

Expected output:
-1


Actual output:

Fixed submission (verdict: Accepted):
import sys
input = sys.stdin.readline
A, B = map(int, input().split())

xmin = 1
while xmin :
    if int(0.08*xmin) == A and int(0.1*xmin) == B :
        print(int(xmin))
        exit()
    elif int(0.08*xmin) < A or int(0.1*xmin) < B :
        xmin += 1
    else :
        print(-1)
        exit()

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)

from math import floor

a, b = map(int, readline().split())
for i in range(101):
    if floor(i * 0.08) == a and floor(i * 0.1) == b:
        print(i)
        exit()
print(-1)


Failing test case input:
12 15

Expected output:
150


Actual output:
-1


Fixed submission (verdict: Accepted):
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)

from math import floor

a, b = map(int, readline().split())
for i in range(100000):
    if floor(i * 0.08) == a and floor(i * 0.1) == b:
        print(i)
        exit()
print(-1)

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B=map(int,input().split())
A_list=[]
B_list=[]
for i in range(101):
    if int(i*0.08)==A:
        A_list.append(i)
    if int(i*0.1)==B:
        B_list.append(i)
flg=0
for i in A_list:
    if i in B_list:
        print(i)
        flg=1
        break
if flg==0:
    print('-1')

Failing test case input:
12 16

Expected output:
160


Actual output:
-1


Fixed submission (verdict: Accepted):
A,B=map(int,input().split())
A_list=[]
B_list=[]
for i in range(1201):
    if int(i*0.08)==A:
        A_list.append(i)
    if int(i*0.1)==B:
        B_list.append(i)
flg=0
for i in A_list:
    if i in B_list:
        print(i)
        flg=1
        break
if flg==0:
    print('-1')
Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B=map(int,input().split())

def tax(A,B):
    count=0
    x=B/0.1
    if x*0.08>A:
        return '-1'
    y=int(x*0.08)
    while True:
        if y<A:
            count+=1
            x+=1
            y=int(x*0.08)
        else:
            if count>9:
                return '-1'
            else:
                return int(x)
            break

print(tax(A,B))

Failing test case input:
10 13

Expected output:
130


Actual output:
-1


Fixed submission (verdict: Accepted):
A,B=map(int,input().split())

def tax(A,B):
    count=0
    x=B/0.1
    if int(x*0.08)>A:
        return '-1'
    y=int(x*0.08)
    while True:
        if y<A:
            count+=1
            x+=1
            y=int(x*0.08)
        else:
            if count>9:
                return '-1'
            else:
                return int(x)
            break

print(tax(A,B))

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())
ans = -1
for i in range(1,b):
  if int(i*1.08) == a and int(i*1.10)==b:
    ans = i
    break
    
print(ans)

Failing test case input:
10 13

Expected output:
130


Actual output:
-1


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
ans = -1
for i in range(1,10000):
  if int(i*0.08) == a and int(i*0.10)==b:
    ans = i
    break
    
print(ans)

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
a,b=map(int,input().split())
for i in range(2000):
  if math.floor((i+1)*0.1)==a and math.floor((i+1)*0.08)==b:
    print(i+1)
    break

Failing test case input:
19 99

Expected output:
-1

Actual output:

Fixed submission (verdict: Accepted):
import math
a,b=map(int,input().split())
for i in range(2000):
  if math.floor((i+1)*0.08)==a and math.floor((i+1)*0.1)==b:
    print(i+1)
    exit()
print(-1)

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int, input().split())
for i in range(1, 101):
    if int(i * 0.08) == A:
        if int(i * 0.1) == B:
            print(i)
            break
else:
    print(-1)

Failing test case input:
10 13

Expected output:
130


Actual output:
-1


Fixed submission (verdict: Accepted):
A, B = map(int, input().split())
for i in range(1, 1011):
    if int(i * 0.08) == A and int(i * 0.1) == B:
        print(i)
        break
else:
    print(-1)
Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

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

x = a / 0.08
y = b / 0.1
left = math.floor(min(x, y))
right = math.ceil(max(x, y))
print(x,y,left,right)
for i in range(left , right + 1):
    if int(i * 0.08) == a and int(i * 0.1) == b:
        print(i)
        exit()
print('-1')

Failing test case input:
21 12

Expected output:
-1


Actual output:
262.5 120.0 120 263
-1


Fixed submission (verdict: Accepted):
import math
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

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

x = a / 0.08
y = b / 0.1
left = math.floor(min(x, y))
right = math.ceil(max(x, y))
for i in range(left , right + 1):
    if int(i * 0.08) == a and int(i * 0.1) == b:
        print(i)
        exit()
print('-1')

Problem: p02755
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a, b = map(int, input().split())

if int(a / 0.08 * 0.1) == b:
  print(int(a / 0.08 * 0.1))
elif int(b / 0.1 * 0.08) == a:
  print(int(b / 0.1 * 0.08))
else:
  print(-1)

Failing test case input:
10 13

Expected output:
130


Actual output:
10


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())

if int(a / 0.08 * 0.1) == b:
    print(round(a / 0.08 + 0.0001))
elif int(b / 0.1 * 0.08) == a:
    print(round(b / 0.1 + 0.0001))
else:
    print(-1)

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())

eightper = 0.08
tenper = 0.1
ans = -1
for i in range(100+1):
    if int(i*eightper)==a:
        if int(i*tenper)==b:
            ans=i
            break
print(ans)

Failing test case input:
12 15

Expected output:
150


Actual output:
-1


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())

eightper = 0.08
tenper = 0.1
ans = -1
for i in range(1,1000+1):
    if int(i*eightper)==a:
        if int(i*tenper)==b:
            ans=i
            break
print(ans)

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
for num in range(1, 102):
    if int(num * 0.08) == a and int(num * 0.10) == b:
        break
if num == 101:
    print(-1)
else:
    print(num)

Failing test case input:
12 15

Expected output:
150


Actual output:
-1


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
for num in range(1, 1252):
    if int(num * 0.08) == a and int(num * 0.10) == b:
        break
if num == 1251:
    print(-1)
else:
    print(num)

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = map(int, input().split())		

ans=-1

for i in range(1,101):
	a = int(i * 0.08)
	if A!=a: continue
	
	b = int(i * 0.1)
	if B!=b: continue
	
	ans=i
	break

print(ans)



Failing test case input:
12 16

Expected output:
160


Actual output:
-1


Fixed submission (verdict: Accepted):
A,B = map(int, input().split())		

ans=-1

for i in range(1,1001):
	a = int(i * 0.08)
	if A!=a: continue
	
	b = int(i * 0.1)
	if B!=b: continue
	
	ans=i
	break

print(ans)
Problem: p02755
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a, b = [int(i) for i in input().split()]
A = a/0.08
B = b*10

if B-1 < A < B+10:
    print(int(max(A, B)+0.5))
else:
    print(-1)


Failing test case input:
12 16

Expected output:
160


Actual output:
-1


Fixed submission (verdict: Accepted):
a, b = [int(i) for i in input().split()]
A = a/0.08
B = b*10
if B-10 <= A < B+10:
    print(int(max(A, B)+0.5))
else:
    print(-1)

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
N = list(map(int, input().split()))
X = [i for i in range(int(N[0]*(1/0.08)), math.ceil((N[0])*(1/0.08))+1)]
Y = [i for i in range(int(N[1]*(1/0.10)), math.ceil((N[1])*(1/0.10))+1)]

cand = set(X) & set(Y)
if len(cand) == 0:
  print(-1)
else:
  print(min(cand))


Failing test case input:
10 13

Expected output:
130


Actual output:
-1


Fixed submission (verdict: Accepted):
import math
N = list(map(int, input().split()))
X = [i for i in range(math.ceil((N[0])*(1/0.08)), math.ceil((N[0]+1)*(1/0.08)))]
Y = [i for i in range(math.ceil((N[1])*(1/0.10)), math.ceil((N[1]+1)*(1/0.10)))]




cand = set(X) & set(Y)
if len(cand) == 0:
  print(-1)
else:
  print(min(cand))

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
ret = -1

A, B = [int(i) for i in input().split(" ")]

for i in range(2000):
    if int(i*0.08) == A and int(i * 0.1) == B:
        ret = i
        break

print(i)

Failing test case input:
27 20

Expected output:
-1


Actual output:
1999


Fixed submission (verdict: Accepted):
ret = "-1"

A, B = [int(i) for i in input().split(" ")]

for i in range(1,2000):
    if int(i*0.08) == A and int(i * 0.1) == B:
        ret = str(i)
        break

print(ret)

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
list = []
A,B = map(int ,input().split())
for i in range(13,10001):
    if i*0.08 == A and i*0.10:
        print(i)
        break
else:
    print("-1")

Failing test case input:
146 32

Expected output:
-1


Actual output:
1825


Fixed submission (verdict: Accepted):
list = []
A,B = map(int ,input().split())
for i in range(13,10001):
    if int(i*0.08) == A and int(i*0.10) == B:
        print(i)
        break
else:
    print("-1")

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def main():
    A,B = map(int,input().split())
    for i in range(10001):
        e = i * 0.08
        t = i * 0.1
        if e == A and t == B:
            return i
    return -1
print(main())

Failing test case input:
12 16

Expected output:
160


Actual output:
-1


Fixed submission (verdict: Accepted):
def main():
    A,B = map(int,input().split())
    for i in range(10001):
        e = int(i * 0.08)
        t = int(i * 0.1)
        if e == A and t == B:
            return i
    return -1
print(main())
Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
def main():
    A,B = map(int, input().split())
    
    min1 = math.ceil(A*100/8)
    max1 = math.ceil((A+1)*100/8)-1
    min2 = math.ceil(B*100/10)
    max2 = math.ceil((B+1)*100/10)-1
    ans = max(min1,min2) if not max1<min2 or max2<min1 else -1
    print(ans)


main()


Failing test case input:
134 157

Expected output:
-1


Actual output:
1675


Fixed submission (verdict: Accepted):
import math
def main():
    A,B = map(int, input().split())
    
    min1 = math.ceil(A*100/8)
    max1 = math.ceil((A+1)*100/8)-1
    min2 = math.ceil(B*100/10)
    max2 = math.ceil((B+1)*100/10)-1
    if min1<=min2 and min2<=max1:
        ans = min2
    elif min2<=min1 and min1<=max2:
        ans = min1
    else:
        ans = -1
    print(ans)


main()

Problem: p02755
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
A,B=map(int,input().split())
c=-1
for i in range(1,100*11):
  if int(i*0.08)==A and int(i**0.1)==B:
    c=i
    break
print(c)

Failing test case input:
10 13

Expected output:
130


Actual output:
-1


Fixed submission (verdict: Accepted):
A,B=map(int,input().split())
c=-1
for i in range(1,10**5):
    if int(i*0.08)==A and int(i*0.1)==B:
        c=i
        break
print(c)

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b  = map(int, input().split())

for i in range(10000):
  if i * 0.08 == a and i * 0.1 == b:
    print(i)
    exit(0)
else:
  print(-1)
    
    


Failing test case input:
10 13

Expected output:
130


Actual output:
-1


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())

for i in range(10000):
    if int(i * 0.08) == a and int(i * 0.1) == b:
        print(i)
        exit(0)

else :
        print(-1)

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
for i in range(1500):
  if int(i*0.08) == a and int(i*0.1) == b:
    print(i)

print(-1)


Failing test case input:
12 15

Expected output:
150


Actual output:
150
151
152
153
154
155
156
157
158
159
-1


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
for i in range(2000):
  if int(i*0.08) == a and int(i*0.1) == b:
    print(i)
    exit()

print(-1)

Problem: p02755
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
import math
A,B=map(int,input().split())
sup=min((A+1)/0.08,(B+1)/0.1)
inf=max(A/0.08,B/0.1)
inf2=math.ceil(inf)
if inf2<sup:
  print(inf2)
else:
  print(-1)
print(math.ceil(101.0))

Failing test case input:
46 106

Expected output:
-1


Actual output:
-1
101


Fixed submission (verdict: Accepted):
import math
A,B=map(int,input().split())
sup=min((A+1)/0.08,(B+1)/0.1)
inf=max(A/0.08,B/0.1)
inf2=math.ceil(inf)
if inf2<sup:
  print(inf2)
else:
  print(-1)
Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
A,B = map(int,input().split())

ans = []
for i in range(1,101):
    if math.floor(i*0.08) == A and math.floor(i*0.1) == B:
        ans.append(i)

if not ans:
    print(-1)
else:
    print(min(ans))

Failing test case input:
12 15

Expected output:
150


Actual output:
-1


Fixed submission (verdict: Accepted):
import math
A,B = map(int,input().split())

ans = []
for ans in range(1,1251):
    if math.floor(ans*0.08) == A and math.floor(ans*0.1) == B:
        print(ans)
        exit()

print(-1)

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
P8, P10 = (8, 10)

import math
price1_min = math.floor(P8/0.08)

price1_max = math.floor((P8+1)/0.08)

price2_min = math.floor(P10/0.10)

price2_max = math.floor((P10+1)/0.10)



if (price1_max >= price2_min) and (price2_max >= price1_min):
    print(max(price2_min, price1_min))
else: 
    print(-1)

Failing test case input:
26 37

Expected output:
-1


Actual output:
100


Fixed submission (verdict: Accepted):
P8, P10 = map(int, input().split())


import math
price1_min = math.ceil(P8/0.08)

price1_max = math.floor((P8+1)

price2_min = math.ceil(P10/0.10)

price2_max = math.floor((P10+1)



if (price1_max >= price2_min) and (price2_max >= price1_min):
    print(max(price2_min, price1_min))
else: 
    print(-1)

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int, input().split())
 
i=1
while i<=10000:
  if A*0.08==i and B*0.1==i:
    print(i)
    quit()
  i+=1
print(-1)

Failing test case input:
12 15

Expected output:
150


Actual output:
-1


Fixed submission (verdict: Accepted):
A,B = map(int,input().split())
i=1
while i<=10000:
  if (int(i * 0.08) == A) & (int(i * 0.10) == B):
    print(i)
    exit()
  i+=1
print(-1)

Problem: p02755
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import math
def main():
  A, B = map(int, input().split())
  
  
  
  for n in range(1, 2000):
    if math.floor(n * 0.08) == A and math.floor(n * 0.1) == B:
      print(n)
      return
  print(-1)
  
  print(math.floor(25 * 0.08))
  print(math.floor(25 * 0.1))
    
  
main()

Failing test case input:
8 -3

Expected output:
-1


Actual output:
-1
2
2


Fixed submission (verdict: Accepted):
import math
def main():
  A, B = map(int, input().split())
  
  
  
  for n in range(1, 1251):
    if math.floor(n * 0.08) == A and math.floor(n * 0.1) == B:
      print(n)
      return
  print(-1)
    
  
main()

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
a,b=map(int,input().split())
arr=[]
for i in range(1,101,1):
  if b==math.floor(i*0.1):
    arr.append(i)
for i in arr:
  if a==math.floor(i*0.08):
    print(i)
    exit()
print(-1)

Failing test case input:
10 13

Expected output:
130


Actual output:
-1


Fixed submission (verdict: Accepted):
import math
a,b=map(int,input().split())
arr=[]
for i in range(1,1001,1):
  if a==math.floor(i*0.08) and b==math.floor(i*0.1):
    print(i)
    exit()
print(-1)
Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math

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

if A == 0 and B == 0:
    print(0)
    exit()

for i in range(100):
    a = math.floor((i+1)*8/100)
    b = math.floor((i+1)/10)
    if A == a and B == b:
        print(i+1)
        exit()

print(-1)


Failing test case input:
10 13

Expected output:
130


Actual output:
-1


Fixed submission (verdict: Accepted):
import math

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

if A == 0 and B == 0:
    print(0)
    exit()

for i in range(1000):
    a = math.floor((i+1)*8/100)
    b = math.floor((i+1)/10)
    if A == a and B == b:
        print(i+1)
        exit()

print(-1)

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math

nums = list(map(int, input().split()))
a = nums[0]
b = nums[1]

c = 10*(10 * a - b)

r = math.floor(c/7)

if math.floor(r*0.08) != a or math.floor(r*0.1) != b:
    print(-1)
else:
    print(r)


Failing test case input:
12 16

Expected output:
160


Actual output:
-1


Fixed submission (verdict: Accepted):
import math
import sys
 
nums = list(map(int, input().split()))
a = nums[0]
b = nums[1]
 
for i in range(1200):
  if math.floor(i * 0.08) == a and math.floor(i*0.1) == b:
      print(i)
      sys.exit()
 
print(-1)
Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int, input().split())

Araw = A/0.08
Braw = B/0.10

if Araw <= Braw + 9 or Araw + 11.25 <= Braw:
  for i in range(10):
    if int((Braw+i) * 0.08) == A:
      print(int(Braw+i))
      break
      
    if int((Braw-i) * 0.08) == A:
      print(int(Braw-i))
      break

else:
  print(-1)

Failing test case input:
3 99

Expected output:
-1


Actual output:

Fixed submission (verdict: Accepted):
A, B = map(int, input().split())

for i in range (1,1010):
  if i != 1009:
    if int(i * 0.08) == A and int(i * 0.10) == B:
      print(i)
      break
      
  if i == 1009:
    if int(i * 0.08) == A and int(i * 0.10) == B:
      print(i)
      break
      
    else:
      print('-1')

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
A, B = map(int, input().split())

max_val = int(math.ceil(A / 0.08))
min_val = int(math.floor(B / 0.1))

for i in range(min_val, max_val + 1):
    if int(i * 0.08) > A or int(i * 0.1) > B:
        break
    if int(i * 0.08) == A and int(i * 0.1) == B:
        print(i)
        exit(0)
print(-1)

Failing test case input:
10 13

Expected output:
130


Actual output:
-1


Fixed submission (verdict: Accepted):
import math
A, B = map(int, input().split())
 
max_val = int(math.ceil(A / 0.07))
min_val = int(math.floor(B / 0.11))
 
for i in range(min_val, max_val + 1):
    if int(i * 0.08) > A or int(i * 0.1) > B:
        break
    if int(i * 0.08) == A and int(i * 0.1) == B:
        print(i)
        exit(0)
print(-1)

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B=list(map(int,input().split()))

a = int(A*12.5)
b = B*10
ans = -1

if a < b:
    for i in range(a, b+2):
        if (int(i*0.1) == B) and (int(i*0.08) == A):
            ans = i

else:
    for i in range(b, a+2):
        if (int(i*0.1) == B) and (int(i*0.08) == A):
            ans = i

print(ans)


Failing test case input:
12 15

Expected output:
150


Actual output:
151


Fixed submission (verdict: Accepted):
A, B=list(map(int,input().split()))

a = int(A*12.5)
b = B*10
ans = -1

if a < b:
    for i in range(a, b+2):
        if (int(i*0.1) == B) and (int(i*0.08) == A):
            if ans == -1:
                ans = i

else:
    for i in range(b, a+2):
        if (int(i*0.1) == B) and (int(i*0.08) == A):
            if ans == -1:
                ans = i

print(ans)
Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

import math

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

temp_a1 = 100 * a 
temp_a2 = 100 * (a + 1) 
temp_b1 = 10 * b 
temp_b2 = (10 * (b + 1)) - 1

result = -1
for i in range(int(temp_a1), int(temp_a2)):
    if temp_b1 <= i <= temp_b2:
        result = i
        break

print(result)


Failing test case input:
10 13

Expected output:
130


Actual output:
-1


Fixed submission (verdict: Accepted):

import math

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

temp_a1 = 100 * a 
temp_a2 = 100 * (a + 1) 
temp_b1 = 10 * b
temp_b2 = 10 * (b + 1)

result = -1
for i in range(min(int(temp_a1), int(temp_b1)), min(int(temp_a2), int(temp_b2))):
    if math.floor(i * 0.08) == a and math.floor(i * 0.1) == b:
        result = i
        break

print(result)

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())

f = False
for x in range(1, 101):
    if int(x * 0.08) == a and int(x * 0.1) == b:
        if not f:
            print(x)
        f = True

if not f:
    print(-1)


Failing test case input:
12 15

Expected output:
150


Actual output:
-1


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())

f = False
for x in range(1, 2000):
    if int(x * 0.08) == a and int(x * 0.1) == b:
        if not f:
            print(x)
        f = True

if not f:
    print(-1)

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
a,b=list(map(int,input().split()))
ans=-1
for i in range(math.floor(a*100/8),math.ceil(a*100/8)):
  if math.floor(i*10/100)==b:
    ans=i
    break
print(ans)

Failing test case input:
10 13

Expected output:
130


Actual output:
-1


Fixed submission (verdict: Accepted):
import math
a,b=list(map(int,input().split()))
ans=-1
for i in range(1,1100):
  if math.floor(i*0.08)==a and math.floor(i*0.1)==b:
    ans=i
    break
print(ans)

Problem: p02755
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
A, B = map(int, input().split())

m = -1
for n in range(101):
    if A*100 <= 8*n < (A+1)*100 and B*100 <= 10*n < (B+1)*100:
        m = n
        break
print(m)

Failing test case input:
12 15

Expected output:
150


Actual output:
-1


Fixed submission (verdict: Accepted):
A, B = map(int, input().split())

m = -1
for n in range(100001):
    if A*100 <= 8*n < (A+1)*100 and B*100 <= 10*n < (B+1)*100:
        m = n
        break
print(m)
Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
A,B=(int(x) for x in input().split())

a=int(A/0.08 + 0.5)
b=int(B/0.1 + 0.5)
out =0
print(a,b)
if a>=b:
    if math.floor(a*0.1) != B:
        out = -1
    else:
        out = int(a)
elif a<b:
    if math.floor(b*0.08) != A:
        out = -1
    else:
        out = int(b)
print(out)

Failing test case input:
290 52

Expected output:
-1


Actual output:
3625 520
-1


Fixed submission (verdict: Accepted):
import math
A,B=(int(x) for x in input().split())

a=int(A/0.08 + 0.5)
b=int(B/0.1 + 0.5)
out =0
"print(a,b)"
if a>=b:
    if math.floor(a*0.1) != B:
        out = -1
    else:
        out = int(a)
elif a<b:
    if math.floor(b*0.08) != A:
        out = -1
    else:
        out = int(b)
print(out)

Problem: p02755
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
def main():
    A, B = map(int, input().split())
    for i in range(1, 101):
        if int(i*0.08) == A and int(i*0.1) == B:
            print(i)
            return
    print(-1)


if __name__ == "__main__":
    main()


Failing test case input:
10 13

Expected output:
130


Actual output:
-1


Fixed submission (verdict: Accepted):
def main():
    A, B = map(int, input().split())
    for i in range(1, 2000):
        if int(i*0.08) == A and int(i*0.1) == B:
            print(i)
            return
    print(-1)


if __name__ == "__main__":
    main()

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


if __name__ == '__main__':
    a, b = map(int, input().split())

    ans = -1
    for i in range(100):
        j = i + 1
        if (int(j * 0.08) == a and int(j * 0.1) == b):
            ans = j
            break

    print(ans)


Failing test case input:
12 16

Expected output:
160


Actual output:
-1


Fixed submission (verdict: Accepted):


if __name__ == '__main__':
    a, b = map(int, input().split())

    ans = -1
    for i in range(2000):
        j = i + 1
        if (int(j * 0.08) == a and int(j * 0.1) == b):
            ans = j
            break

    print(ans)

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = list(map(int,input().split()))
A = a[0]
B = a[1]
c = True
for x in range(10001):
    a = x * 0.08
    b = x * 0.1
    if A == round(a,2) and B == round(b,2):
        print(x)
        c = False
        break
if c:
    print(-1)

Failing test case input:
10 13

Expected output:
130


Actual output:
-1


Fixed submission (verdict: Accepted):
a = list(map(int,input().split()))
A = a[0]
B = a[1]
c = True
for x in range(10001):
    a = x * 0.08
    b = x * 0.1
    if A == int(a) and B == int(b):
        print(x)
        c = False
        break
if c:
    print(-1)

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
for i in range(0,101):
    if int(i*0.08)==a and int(i*0.1)==b:
        print(i)
        exit()

print(-1)

Failing test case input:
12 15

Expected output:
150


Actual output:
-1


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
for i in range(0,1001):
    if int(i*0.08)==a and int(i*0.1)==b:
        print(i)
        exit()

print(-1)
Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = (int(x) for x in input().split())
for i in range(1,101):
    Ahan = int(i * 0.08)
    Bhan = int(i * 0.10)
    if (Ahan == A and Bhan == B):
        print(i)
        break
    
    if(i == 100):
        print(-1)
        break

Failing test case input:
12 15

Expected output:
150


Actual output:
-1


Fixed submission (verdict: Accepted):
A,B = (int(x) for x in input().split())
for i in range(1,1001):
    Ahan = int(i * 0.08)
    Bhan = int(i * 0.10)
    if (Ahan == A and Bhan == B):
        print(i)
        exit()
print(-1)

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
res = -1
for i in range(b * 10, (b + 1) * 10):
    if int(i * 0.08) == int(i * 0.1):
        res = i
        break
print(res)

Failing test case input:
12 15

Expected output:
150


Actual output:
-1


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
res = -1
for i in range(b * 10, (b + 1) * 10):
    if i * 0.08 >= a and i * 0.08 < a + 1 :
        res = i
        break
print(res)

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = (int(x) for x in input().split())


my_index = []
for i in range(101):
    if int((i*0.08)) ==a and int((i*0.1))==b:
        my_index.append(i)
    elif int((i*0.08)) ==b and int((i*0.1))==a:
        my_index.append(i)

if my_index != []:
    print(min(my_index))
else:
    print(-1)

Failing test case input:
12 15

Expected output:
150


Actual output:
-1


Fixed submission (verdict: Accepted):
a,b = (int(x) for x in input().split())


my_index = []
for i in range(1010):
    if int((i*0.08)) ==a and int((i*0.1))==b:
        my_index.append(i)
    if int((i*0.08)) ==b and int((i*0.1))==a:
        my_index.append(i)

if my_index != []:
    print(min(my_index))
else:
    print(-1)

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
ret = -1

A, B = [int(i) for i in input().split(" ")]

for i in range(1,2000):
    if int(i*0.08) == A and int(i * 0.1) == B:
        ret = i
        break

print(i)

Failing test case input:
35 141

Expected output:
-1


Actual output:
1999


Fixed submission (verdict: Accepted):
ret = "-1"

A, B = [int(i) for i in input().split(" ")]

for i in range(1,2000):
    if int(i*0.08) == A and int(i * 0.1) == B:
        ret = str(i)
        break

print(ret)

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
A, B = map(int, input().split())
for i in range(1, 101):
    if math.floor(i * 0.08) == A and math.floor(i * 0.1) == B:
        print(i)
        exit()
print('-1')


Failing test case input:
10 13

Expected output:
130


Actual output:
-1


Fixed submission (verdict: Accepted):
import math
A, B = map(int, input().split())
for i in range(1, 1001):
    if math.floor(i * 0.08) == A and math.floor(i * 0.1) == B:
        print(i)
        exit()
print('-1')
Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int, input().split())
ans = -1

for price in range(1, 101):
    if int(price * 0.08) == A and int(price * 0.1) == B:
        ans = price
        break

print(ans)

Failing test case input:
12 15

Expected output:
150


Actual output:
-1


Fixed submission (verdict: Accepted):
A, B = map(int, input().split())
ans = -1

for price in range(1, 1251):
    if int(price * 0.08) == A and int(price * 0.1) == B:
        ans = price
        break

print(ans)

Problem: p02755
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):


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

min = -1

for i in range(int(A / 0.08) + 1):
    if int(i * 0.08) == A and int(i * 0.1) == B:
        min = i
        break

print(min)

Failing test case input:
12 16

Expected output:
160


Actual output:
-1


Fixed submission (verdict: Accepted):


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

min = -1

for i in range(1251):
    if int(i * 0.08) == A and int(i * 0.1) == B:
        min = i
        break

print(min)

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
flag = 0
a , b = map(int , input().split())

for i in range(1000):
    if math.floor(i * 0.08) == a and math.floor(i * 0.1) == b:
        ans = i
        flag = 1
if flag == 1:
    print(ans)
else:
    print(-1)

Failing test case input:
12 16

Expected output:
160


Actual output:
162


Fixed submission (verdict: Accepted):
import math
import sys
a , b = map(int , input().split())

for i in range(2000):
    if math.floor(i * 0.08) == a and math.floor(i * 0.1) == b:
        print(i)
        sys.exit()

print(-1)

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
A, B = map(int,input().split())
for i in range(10000):
    if math.floor(i * 0.08) == A:
        result = i
        break
if math.floor(result * 0.1) == B:
    print(result)
else:
    print(-1)


Failing test case input:
10 13

Expected output:
130


Actual output:
-1


Fixed submission (verdict: Accepted):
import math
A, B = map(int,input().split())
for i in range(10000):
    if math.floor(i * 0.08) == A and math.floor(i * 0.1) == B:
        print(i)
        break
    elif i == 9999:
        print(-1)

Problem: p02755
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int, input().split())
ans=0
for x in range(1, 101):
    if (int(x*0.08)==A) and (int(x*0.1)==B):
        ans=x
        break
if ans:
    print(ans)
else:
    print(-1)

Failing test case input:
12 16

Expected output:
160


Actual output:
-1


Fixed submission (verdict: Accepted):
A, B = map(int, input().split())
ans=0
for x in range(1, 1251):
    if (int(x*0.08)==A) and (int(x*0.1)==B):
        ans=x
        break
if ans:
    print(ans)
else:
    print(-1)