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

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

print(main())
