i = list(map(int, input().split())) #i_1 i_2を取得し、iに値を入れる
A = i[0] #出力：i_1
B = i[1] #出力：i_2

if A >= 13:
    print(B)
elif A >= 6:
    print(int(B/2))
else:
    print(0) i = list(map(int, input().split())) i list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split A = i[0] A i[0] i 0 B = i[1] B i[1] i 1 if A >= 13:
    print(B)
elif A >= 6:
    print(int(B/2))
else:
    print(0) A >= 13 A 13 print(B) print B elif A >= 6:
    print(int(B/2)) A >= 6 A 6 print(int(B/2)) print int(B/2) int B/2 B 2 print(0) print 0 A = i[0] i[0] A B = i[1] i[1] B i = list(map(int, input().split())) list(map(int, input().split())) i
i = list(map(int, input().split())) #i_1 i_2を取得し、iに値を入れる
A = i[0] #出力：i_1
B = i[1] #出力：i_2

if A >= 13:
    print(B)
elif A >= 6:
    print(int(B/2))
else:
    print(0)