line = input()
numbers = [int(n) for n in line.split()]
if numbers[0] <= 5:
    predicted_value = 0
elif numbers[0] <= 12:
    predicted_value = numbers[1]//2
else:
    predicted_value = numbers[1]
print(predicted_value) line = input() line input() input int(n) for n in line.split() for n in line.split() n line.split() line.split line split for n in line.split() int(n) int n numbers = [int(n) for n in line.split()] numbers [int(n) for n in line.split()] if numbers[0] <= 5:
    predicted_value = 0
elif numbers[0] <= 12:
    predicted_value = numbers[1]//2
else:
    predicted_value = numbers[1] numbers[0] <= 5 numbers[0] numbers 0 5 predicted_value = 0 predicted_value 0 elif numbers[0] <= 12:
    predicted_value = numbers[1]//2 numbers[0] <= 12 numbers[0] numbers 0 12 predicted_value = numbers[1]//2 predicted_value numbers[1]//2 numbers[1] numbers 1 2 predicted_value = numbers[1] predicted_value numbers[1] numbers 1 print(predicted_value) print predicted_value predicted_value = numbers[1] numbers[1] predicted_value numbers = [int(n) for n in line.split()] [int(n) for n in line.split()] numbers line = input() input() line predicted_value = 0 0 predicted_value predicted_value = numbers[1]//2 numbers[1]//2 predicted_value
line = input()
numbers = [int(n) for n in line.split()]
if numbers[0] <= 5:
    predicted_value = 0
elif numbers[0] <= 12:
    predicted_value = numbers[1]//2
else:
    predicted_value = numbers[1]
print(predicted_value)