p03035 AtCoder Beginner Contest 127 - Ferris Wheel
Takahashi, who is A years old, is riding a Ferris wheel.

It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)

Find the cost of the Ferris wheel for Takahashi.

Constraints

* 0 ≤ A ≤ 100
* 2 ≤ B ≤ 1000
* B is an even number.

Input

Input is given from Standard Input in the following format:


A B


Output

Print the cost of the Ferris wheel for Takahashi.

Examples

Input

30 100


Output

100


Input

12 100


Output

50


Input

0 100


Output

0
```python
a,b = map(int,input().split())
if a > 12:
	print(b)
elif a < 6:
	print(0)
else:
	print(b//2)
```