import sys

A, B = map(int, sys.stdin.readline().split())
if A <= 5:
    print(0)
elif A <= 12:
    print(B // 2)
else:
    print(B) import sys sys A, B = map(int, sys.stdin.readline().split()) A map(int, sys.stdin.readline().split()) map int sys.stdin.readline().split() sys.stdin.readline().split sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline split B if A <= 5:
    print(0)
elif A <= 12:
    print(B // 2)
else:
    print(B) A <= 5 A 5 print(0) print 0 elif A <= 12:
    print(B // 2) A <= 12 A 12 print(B // 2) print B // 2 B 2 print(B) print B A, B = map(int, sys.stdin.readline().split()) map(int, sys.stdin.readline().split()) A B = map(int, sys.stdin.readline().split()) map(int, sys.stdin.readline().split()) B
import sys

A, B = map(int, sys.stdin.readline().split())
if A <= 5:
    print(0)
elif A <= 12:
    print(B // 2)
else:
    print(B)