inputted = list(map(int, input().split()))
A = int(inputted[0])
B = int(inputted[1])

age = A
full_price = B

is_full_price = age >= 13
is_half_price = 6 <= age <= 12

price = 0
if is_full_price:
    price = full_price
elif is_half_price:
    price = int(full_price / 2)

print(price) inputted = list(map(int, input().split())) inputted list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split A = int(inputted[0]) A int(inputted[0]) int inputted[0] inputted 0 B = int(inputted[1]) B int(inputted[1]) int inputted[1] inputted 1 age = A age A full_price = B full_price B is_full_price = age >= 13 is_full_price age >= 13 age 13 is_half_price = 6 <= age <= 12 is_half_price 6 <= age <= 12 6 <= age 6 age 12 price = 0 price 0 if is_full_price:
    price = full_price
elif is_half_price:
    price = int(full_price / 2) is_full_price price = full_price price full_price elif is_half_price:
    price = int(full_price / 2) is_half_price price = int(full_price / 2) price int(full_price / 2) int full_price / 2 full_price 2 print(price) print price full_price = B B full_price B = int(inputted[1]) int(inputted[1]) B is_half_price = 6 <= age <= 12 6 <= age <= 12 is_half_price price = 0 0 price price = int(full_price / 2) int(full_price / 2) price inputted = list(map(int, input().split())) list(map(int, input().split())) inputted age = A A age price = full_price full_price price A = int(inputted[0]) int(inputted[0]) A is_full_price = age >= 13 age >= 13 is_full_price
inputted = list(map(int, input().split()))
A = int(inputted[0])
B = int(inputted[1])

age = A
full_price = B

is_full_price = age >= 13
is_half_price = 6 <= age <= 12

price = 0
if is_full_price:
    price = full_price
elif is_half_price:
    price = int(full_price / 2)

print(price)
