def main():
    A, B = map(int, input().split())

    if A >= 13:
        ans = B
    elif A >= 6:
        ans = B // 2
    else:
        ans = 0

    print(ans)


if __name__ == "__main__":
    main() def main():
    A, B = map(int, input().split())

    if A >= 13:
        ans = B
    elif A >= 6:
        ans = B // 2
    else:
        ans = 0

    print(ans) main A, B = map(int, input().split()) A map(int, input().split()) map int input().split() ().split () input split B if A >= 13:
        ans = B
    elif A >= 6:
        ans = B // 2
    else:
        ans = 0

     A >= 13 A 13 ans = B ans B elif A >= 6:
        ans = B // 2
     A >= 6 A 6 ans = B // 2 ans B // 2 B 2 ans = 0 ans 0 print(ans) print ans if __name__ == "__main__":
    main() __name__ == "__main__" __name__ "__main__" main() main def main():
    A, B = map(int, input().split())

    if A >= 13:
        ans = B
    elif A >= 6:
        ans = B // 2
    else:
        ans = 0

    print(ans) def main():
    A, B = map(int, input().split())

    if A >= 13:
        ans = B
    elif A >= 6:
        ans = B // 2
    else:
        ans = 0

    print(ans) main
def main():
    A, B = map(int, input().split())

    if A >= 13:
        ans = B
    elif A >= 6:
        ans = B // 2
    else:
        ans = 0

    print(ans)


if __name__ == "__main__":
    main()
