a,b = input().split()
a = int(a)
b = int(b)

if 0 <= a <= 100:
    if 2 <= b <= 1000 and (b%2 == 0):
        if a >= 13 :
            print(int(b))
        if 6 <= a <= 12:
            x = b/2
            print(int(x))
        if a <= 5 :
            print(int(0)) a,b = input().split() a input().split() ().split () input split b a = int(a) a int(a) int a b = int(b) b int(b) int b if 0 <= a <= 100:
    if 2 <= b <= 1000 and (b%2 == 0):
        if a >= 13 :
            print(int(b))
        if 6 <= a <= 12:
            x = b/2
            print(int(x))
        if a <= 5 :
            print(int(0)) 0 <= a <= 100 0 <= a 0 a 100 if 2 <= b <= 1000 and (b%2 == 0):
        if a >= 13 :
            print(int(b))
        if 6 <= a <= 12:
            x = b/2
            print(int(x))
        if a <= 5 :
            print(int(0)) 2 <= b <= 1000 and (b%2 == 0) 2 <= b <= 1000 2 <= b 2 b 1000 b%2 == 0 b%2 b 2 0 if a >= 13 :
            print(int(b))
         a >= 13 a 13 print(int(b)) print int(b) int b if 6 <= a <= 12:
            x = b/2
            print(int(x))
         6 <= a <= 12 6 <= a 6 a 12 x = b/2 x b/2 b 2 print(int(x)) print int(x) int x if a <= 5 :
            print(int(0)) a <= 5 a 5 print(int(0)) print int(0) int 0 x = b/2 b/2 x b = int(b) int(b) b a,b = input().split() input().split() a a = int(a) int(a) a b = input().split() input().split() b
a,b = input().split()
a = int(a)
b = int(b)

if 0 <= a <= 100:
    if 2 <= b <= 1000 and (b%2 == 0):
        if a >= 13 :
            print(int(b))
        if 6 <= a <= 12:
            x = b/2
            print(int(x))
        if a <= 5 :
            print(int(0))