age,fee=map(int,input().split())

if age>=13:
    print(fee)
elif age<13 and age>=6:
    print(int(fee/2))
else:
    print(0) age,fee=map(int,input().split()) age map(int,input().split()) map int input().split() ().split () input split fee if age>=13:
    print(fee)
elif age<13 and age>=6:
    print(int(fee/2))
else:
    print(0) age>=13 age 13 print(fee) print fee elif age<13 and age>=6:
    print(int(fee/2)) age<13 and age>=6 age<13 age 13 age>=6 age 6 print(int(fee/2)) print int(fee/2) int fee/2 fee 2 print(0) print 0 age,fee=map(int,input().split()) map(int,input().split()) age fee=map(int,input().split()) map(int,input().split()) fee
age,fee=map(int,input().split())

if age>=13:
    print(fee)
elif age<13 and age>=6:
    print(int(fee/2))
else:
    print(0)
