def main():

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




main() def main():

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

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

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

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




main()