i = input().split()

a,b = list(map(int, i))

if a >= 13:
    print(int(b))
elif a <= 5:
    print(0)
else:
    print(int(b/2)) i = input().split() i input().split() ().split () input split a,b = list(map(int, i)) a list(map(int, i)) list map(int, i) map int i b if a >= 13:
    print(int(b))
elif a <= 5:
    print(0)
else:
    print(int(b/2)) a >= 13 a 13 print(int(b)) print int(b) int b elif a <= 5:
    print(0) a <= 5 a 5 print(0) print 0 print(int(b/2)) print int(b/2) int b/2 b 2 a,b = list(map(int, i)) list(map(int, i)) a i = input().split() input().split() i b = list(map(int, i)) list(map(int, i)) b
i = input().split()

a,b = list(map(int, i))

if a >= 13:
    print(int(b))
elif a <= 5:
    print(0)
else:
    print(int(b/2))