# ABC127
# A Ferris Wheel
a, b = map(int, input().split())
if a > 12:
    print(b)
    exit()
elif a < 6:
    print(0)
    exit()
else:
    print(b // 2)
    exit() a, b = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b if a > 12:
    print(b)
    exit()
elif a < 6:
    print(0)
    exit()
else:
    print(b // 2)
    exit() a > 12 a 12 print(b) print b exit() exit elif a < 6:
    print(0)
    exit() a < 6 a 6 print(0) print 0 exit() exit print(b // 2) print b // 2 b 2 exit() exit b = map(int, input().split()) map(int, input().split()) b a, b = map(int, input().split()) map(int, input().split()) a
# ABC127
# A Ferris Wheel
a, b = map(int, input().split())
if a > 12:
    print(b)
    exit()
elif a < 6:
    print(0)
    exit()
else:
    print(b // 2)
    exit()
