inp=input()
list =inp.split()
age, cost=list[0], list[1]
age=int(age)
cost=int(cost)
if age>=13:
  cost=cost
elif age<13 and age>5:
  cost=cost*0.5
else:
  cost=0
print(int(cost)) inp=input() inp input() input list =inp.split() list inp.split() inp.split inp split age, cost=list[0], list[1] age list[0] list 0 cost list[1] list 1 age=int(age) age int(age) int age cost=int(cost) cost int(cost) int cost if age>=13:
  cost=cost
elif age<13 and age>5:
  cost=cost*0.5
else:
  cost=0 age>=13 age 13 cost=cost cost cost elif age<13 and age>5:
  cost=cost*0.5 age<13 and age>5 age<13 age 13 age>5 age 5 cost=cost*0.5 cost cost*0.5 cost 0.5 cost=0 cost 0 print(int(cost)) print int(cost) int cost cost=list[0], list[1] list[1] cost cost=int(cost) int(cost) cost cost=0 0 cost age=int(age) int(age) age age, cost=list[0], list[1] list[0] age cost=cost cost cost cost=cost*0.5 cost*0.5 cost inp=input() input() inp list =inp.split() inp.split() list
inp=input()
list =inp.split()
age, cost=list[0], list[1]
age=int(age)
cost=int(cost)
if age>=13:
  cost=cost
elif age<13 and age>5:
  cost=cost*0.5
else:
  cost=0
print(int(cost))