100 atcoder#ABC127A. [ABC127A] Ferris Wheel

[ABC127A] Ferris Wheel

Score : 100100 points

Problem Statement

Takahashi, who is AA years old, is riding a Ferris wheel.

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

Find the cost of the Ferris wheel for Takahashi.

Constraints

  • 0A1000 \leq A \leq 100
  • 2B10002 \leq B \leq 1000
  • BB is an even number.

Input

Input is given from Standard Input in the following format:

AA BB

Output

Print the cost of the Ferris wheel for Takahashi.

30 100
100

Takahashi is 3030 years old now, and the cost of the Ferris wheel is 100100 yen.

12 100
50

Takahashi is 1212 years old, and the cost of the Ferris wheel is the half of 100100 yen, that is, 5050 yen.

0 100
0

Takahashi is 00 years old, and he can ride the Ferris wheel for free.