Chef started watching a movie that runs for a total of X minutes.

Chef has decided to watch the first Y minutes of the movie at twice the usual speed as he was warned by his friends that the movie gets interesting only after the first Y minutes.

How long will Chef spend watching the movie in total?

Note: It is guaranteed that Y is even.

------ Input Format ------ 

- The first line contains two space separated integers X, Y - as per the problem statement.

------ Output Format ------ 

- Print in a single line, an integer denoting the total number of minutes that Chef spends in watching the movie.

------ Constraints ------ 

$1 ≤ X, Y ≤ 1000$
$Y$ is an even integer.

------ subtasks ------ 

Subtask #1 (100 points): original constraints

----- Sample Input 1 ------ 
100 20
----- Sample Output 1 ------ 
90
----- explanation 1 ------ 
For the first $Y = 20$ minutes, Chef watches at twice the usual speed, so the total amount of time spent to watch this portion of the movie is $\frac{Y}{2} = 10$ minutes.

For the remaining $X - Y = 80$ minutes, Chef watches at the usual speed, so it takes him $80$ minutes to watch the remaining portion of the movie.

In total, Chef spends $10 + 80 = 90$ minutes watching the entire movie.

----- Sample Input 2 ------ 
50 24
----- Sample Output 2 ------ 
38
----- explanation 2 ------ 
For the first $Y = 24$ minutes, Chef watches at twice the usual speed, so the total amount of time spent to watch this portion of the movie is $\frac{Y}{2} = 12$ minutes.

For the remaining $X - Y = 26$ minutes, Chef watches at the usual speed, so it takes him $26$ minutes to watch the remaining portion of the movie.

In total, Chef spends $12 + 26 = 38$ minutes watching the entire movie.

Source: codechef | Difficulty: EASY
Tags: Mathematics


Solutions:
(x, y) = map(int, input().split())
print(x - y // 2)


(x, y) = list(map(int, input().split()))
val = y / 2
print(int(x - val))


(X, Y) = list(map(int, input().split()))
a = Y // 2
print(X - a)


(X, Y) = map(int, input().split())
t1 = Y / 2
t2 = X - t1
print(int(t2))


(a, b) = map(int, input().split())
print(b // 2 + (a - b))


(x, y) = map(int, input().split())
r1 = x - y
r2 = y // 2
print(r1 + r2)


(a, b) = map(int, input().split())
c = abs(b // 2)
print(a - b + c)


(x, y) = input().split()
x = int(x)
y = int(y)
y_ = y / 2
x_ = x - y
ans = x_ + y_
print(int(ans))


(X, Y) = map(int, input().split())
print(X - int(Y / 2))


(x, y) = map(int, input().split())
x1 = y // 2
x2 = x - y
print(x1 + x2)


(x, y) = map(int, input().split())
n = x - y
e = y // 2
print(n + e)


(x, y) = map(int, input().split())
a = y // 2
b = x - y
print(a + b)


(x, y) = map(int, input().split())
s = y // 2
r = x - y
print(s + r)


(a, b) = map(int, input().split())
c = b // 2
d = a - b
print(c + d)


(y, z) = map(int, input().split())
print(int(y - z + z / 2))


(m, n) = map(int, input().split())
a = n // 2
print(m - a)


(a, b) = map(int, input().split())
t = b // 2
s = a - b
print(t + s)


(x, y) = list(map(int, input().split()))
c = y // 2
d = x - y
print(c + d)


(a, b) = map(int, input().split())
s = b // 2
r = a - b
print(s + r)


(a, b) = map(int, input().split())
p = b // 2
q = a - b
print(p + q)


(x, y) = map(int, input().split())
m = y // 2
n = x - y
print(m + n)


(x, y) = map(int, input().split())
t = y / 2
s = x - y
print(int(t + s))


(x, y) = map(int, input().split())
a = x - y
z = int(y // 2)
print(a + z)


(x, y) = map(int, input().split())
(d, t) = (y // 2, x - y)
print(d + t)


(a, b) = list(map(int, input().split()))
c = b // 2
print(a - c)


(a, b) = map(int, input().split())
k = b // 2
d = a - b
print(d + k)


(x, y) = list(map(int, input().split()))
total = y // 2 + x - y
print(total)