x,y = (int(a) for a in input().split() )
if 13 <= x :
    print(y)
elif 6 <= x <= 12 :
    print(int(y/2))
else : print(0) int(a) for a in input().split() for a in input().split() a input().split() ().split () input split for a in input().split() int(a) int a x,y = (int(a) for a in input().split() ) x (int(a) for a in input().split() ) y if 13 <= x :
    print(y)
elif 6 <= x <= 12 :
    print(int(y/2))
else : print(0) 13 <= x 13 x print(y) print y elif 6 <= x <= 12 :
    print(int(y/2)) 6 <= x <= 12 6 <= x 6 x 12 print(int(y/2)) print int(y/2) int y/2 y 2 x,y = (int(a) for a in input().split() ) (int(a) for a in input().split() ) x y = (int(a) for a in input().split() ) (int(a) for a in input().split() ) y
x,y = (int(a) for a in input().split() )
if 13 <= x :
    print(y)
elif 6 <= x <= 12 :
    print(int(y/2))
else : print(0)
