#D933. Ferris Wheel

    ID: 776 Type: Default 2000ms 1073MiB

Ferris Wheel

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

inputFormat

Input

Input is given from Standard Input in the following format:

A B

outputFormat

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

样例

0 100
0