a, p = map(int, input().split())

if a <= 5:
    print(0)
elif 6 <= a <= 12:
    print(p//2)
elif a >= 13:
    print(p) a, p = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split p if a <= 5:
    print(0)
elif 6 <= a <= 12:
    print(p//2)
elif a >= 13:
    print(p) a <= 5 a 5 print(0) print 0 elif 6 <= a <= 12:
    print(p//2) 6 <= a <= 12 6 <= a 6 a 12 print(p//2) print p//2 p 2 elif a >= 13:
    print(p) a >= 13 a 13 print(p) print p p = map(int, input().split()) map(int, input().split()) p a, p = map(int, input().split()) map(int, input().split()) a
a, p = map(int, input().split())

if a <= 5:
    print(0)
elif 6 <= a <= 12:
    print(p//2)
elif a >= 13:
    print(p)