import sys
import math
import bisect

def main():
    a, b = map(int, input().split())
    if a <= 5:
        ans = 0
    elif a <= 12:
        ans = b // 2
    else:
        ans = b
    print(ans)
    
if __name__ == "__main__":
    main() import sys sys import math math import bisect bisect def main():
    a, b = map(int, input().split())
    if a <= 5:
        ans = 0
    elif a <= 12:
        ans = b // 2
    else:
        ans = b
    print(ans)
     main a, b = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b if a <= 5:
        ans = 0
    elif a <= 12:
        ans = b // 2
    else:
        ans = b
     a <= 5 a 5 ans = 0 ans 0 elif a <= 12:
        ans = b // 2
     a <= 12 a 12 ans = b // 2 ans b // 2 b 2 ans = b ans b print(ans) print ans if __name__ == "__main__":
    main() __name__ == "__main__" __name__ "__main__" main() main def main():
    a, b = map(int, input().split())
    if a <= 5:
        ans = 0
    elif a <= 12:
        ans = b // 2
    else:
        ans = b
    print(ans)
     def main():
    a, b = map(int, input().split())
    if a <= 5:
        ans = 0
    elif a <= 12:
        ans = b // 2
    else:
        ans = b
    print(ans)
     main
import sys
import math
import bisect

def main():
    a, b = map(int, input().split())
    if a <= 5:
        ans = 0
    elif a <= 12:
        ans = b // 2
    else:
        ans = b
    print(ans)
    
if __name__ == "__main__":
    main()
