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

32a66eae700f1383ac0868f06601f56fd0c66d1b
<mask token>

<mask token>
if a >= 13:
    print(b)
elif 6 <= a < 13:
    print(b // 2)
else:
    print(0)

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