x,y=map(int,input().split())
if(x>12):
    print(y)
elif(x>=6 and x<=12):
    print(y//2)
else:
    print(0) x,y=map(int,input().split()) x map(int,input().split()) map int input().split() ().split () input split y if(x>12):
    print(y)
elif(x>=6 and x<=12):
    print(y//2)
else:
    print(0) x>12 x 12 print(y) print y elif(x>=6 and x<=12):
    print(y//2) x>=6 and x<=12 x>=6 x 6 x<=12 x 12 print(y//2) print y//2 y 2 print(0) print 0 y=map(int,input().split()) map(int,input().split()) y x,y=map(int,input().split()) map(int,input().split()) x
x,y=map(int,input().split())
if(x>12):
    print(y)
elif(x>=6 and x<=12):
    print(y//2)
else:
    print(0)
