def main():
    inp=list(map(lambda x:int(x),input().split()))
    A=inp[0]
    B=inp[1]

    res=B
    if A>=6 and A<=12:
        res=res//2
    elif A<=5:
        res=0

    print(res)

if __name__=="__main__":
    main()
     def main():
    inp=list(map(lambda x:int(x),input().split()))
    A=inp[0]
    B=inp[1]

    res=B
    if A>=6 and A<=12:
        res=res//2
    elif A<=5:
        res=0

    print(res) main inp=list(map(lambda x:int(x),input().split())) inp list(map(lambda x:int(x),input().split())) list map(lambda x:int(x),input().split()) map lambda x:int(x) int(x) int x x input().split() ().split () input split A=inp[0] A inp[0] inp 0 B=inp[1] B inp[1] inp 1 res=B res B if A>=6 and A<=12:
        res=res//2
    elif A<=5:
        res=0

     A>=6 and A<=12 A>=6 A 6 A<=12 A 12 res=res//2 res res//2 res 2 elif A<=5:
        res=0

     A<=5 A 5 res=0 res 0 print(res) print res if __name__=="__main__":
    main()
     __name__=="__main__" __name__ "__main__" main() main def main():
    inp=list(map(lambda x:int(x),input().split()))
    A=inp[0]
    B=inp[1]

    res=B
    if A>=6 and A<=12:
        res=res//2
    elif A<=5:
        res=0

    print(res) def main():
    inp=list(map(lambda x:int(x),input().split()))
    A=inp[0]
    B=inp[1]

    res=B
    if A>=6 and A<=12:
        res=res//2
    elif A<=5:
        res=0

    print(res) main
def main():
    inp=list(map(lambda x:int(x),input().split()))
    A=inp[0]
    B=inp[1]

    res=B
    if A>=6 and A<=12:
        res=res//2
    elif A<=5:
        res=0

    print(res)

if __name__=="__main__":
    main()
    
