a,b=map(int,input().split())
print([[0,b//2][a>5],b][a>12]) a,b=map(int,input().split()) a map(int,input().split()) map int input().split() ().split () input split b print([[0,b//2][a>5],b][a>12]) print [[0,b//2][a>5],b][a>12] [[0,b//2][a>5],b] [0,b//2][a>5] [0,b//2] 0 b//2 b 2 a>5 a 5 b a>12 a 12 b=map(int,input().split()) map(int,input().split()) b a,b=map(int,input().split()) map(int,input().split()) a
a,b=map(int,input().split())
print([[0,b//2][a>5],b][a>12])