import os, sys, re, math



A,B = [int(s) for s in input().split(' ')]



if A < 6:

    print((0))

elif 6 <= A and A <= 12:

    print((int(B/2)))

else:

    print(B)

import os, sys, re, math



A,B = list(map(int,input().split(' ')))

if A >= 13:

	print(B)

elif A >= 6:

	print((B // 2))

else:

	print((0))
import os, sys, re, math

A, B = [int(s) for s in input().split(" ")]
if A < 6:
    print((0))
elif 6 <= A and A <= 12:
    print((int(B / 2)))
else:
    print(B)

import os, sys, re, math

A, B = list(map(int, input().split(" ")))
if A >= 13:
    print(B)
elif A >= 6:
    print((B // 2))
else:
    print((0))

-A, B = [int(s) for s in input().split(" ")] -if A < 6: +A, B = list(map(int, input().split(" "))) +if A >= 13: +    print(B) +elif A >= 6: +    print((B // 2)) +else: -elif 6 <= A and A <= 12: -    print((int(B / 2))) -else: -    print(B)