19 lines
264 B
Python
19 lines
264 B
Python
|
average = int(input(""))
|
||
|
|
||
|
assignments = int(input(""))
|
||
|
|
||
|
"""
|
||
|
(average*2+x)/3=80
|
||
|
average*2+x=240
|
||
|
x=240-average*2
|
||
|
|
||
|
"""
|
||
|
|
||
|
required = 80*(assignments+1) - average*assignments
|
||
|
|
||
|
if required > 100:
|
||
|
print("-1")
|
||
|
elif required < 0:
|
||
|
print("0")
|
||
|
else:
|
||
|
print(required)
|