def main():
    a, b = list(map(int, input().split()))
    ans = 0
    if a >= 13:
        ans = b
    elif 6 <= a <= 12:
        ans = b//2
    print(ans)

if __name__ == '__main__':
    main() def main():
    a, b = list(map(int, input().split()))
    ans = 0
    if a >= 13:
        ans = b
    elif 6 <= a <= 12:
        ans = b//2
    print(ans) main a, b = list(map(int, input().split())) a list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split b ans = 0 ans 0 if a >= 13:
        ans = b
    elif 6 <= a <= 12:
        ans = b//2
     a >= 13 a 13 ans = b ans b elif 6 <= a <= 12:
        ans = b//2
     6 <= a <= 12 6 <= a 6 a 12 ans = b//2 ans b//2 b 2 print(ans) print ans if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def main():
    a, b = list(map(int, input().split()))
    ans = 0
    if a >= 13:
        ans = b
    elif 6 <= a <= 12:
        ans = b//2
    print(ans) def main():
    a, b = list(map(int, input().split()))
    ans = 0
    if a >= 13:
        ans = b
    elif 6 <= a <= 12:
        ans = b//2
    print(ans) main
def main():
    a, b = list(map(int, input().split()))
    ans = 0
    if a >= 13:
        ans = b
    elif 6 <= a <= 12:
        ans = b//2
    print(ans)

if __name__ == '__main__':
    main()
