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

if age >= 13:
    print(fee)
elif 6 <= age <= 12:
    print(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 6 <= age <= 12:
    print(fee // 2)
else:
    print(0) age >= 13 age 13 print(fee) print fee elif 6 <= age <= 12:
    print(fee // 2) 6 <= age <= 12 6 <= age 6 age 12 print(fee // 2) print 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 6 <= age <= 12:
    print(fee // 2)
else:
    print(0)