def readinput():
    a,b=map(int,input().split())
    return a,b

def main(a,b):
    if a>=13:
        return b
    elif a>=6:
        return b//2
    else:
        return 0

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

def main(a,b):
    if a>=13:
        return b
    elif a>=6:
        return b//2
    else:
        return 0

if __name__=='__main__':
    a,b=readinput()
    ans=main(a,b)
    print(ans)
