a,b=map(int,input().split())
print(b//(13//min(a+1, 14)+1)*min(1, a//6)) a,b=map(int,input().split()) a map(int,input().split()) map int input().split() ().split () input split b print(b//(13//min(a+1, 14)+1)*min(1, a//6)) print b//(13//min(a+1, 14)+1)*min(1, a//6) b//(13//min(a+1, 14)+1) b 13//min(a+1, 14)+1 13//min(a+1, 14) 13 min(a+1, 14) min a+1 a 1 14 1 min(1, a//6) min 1 a//6 a 6 a,b=map(int,input().split()) map(int,input().split()) a b=map(int,input().split()) map(int,input().split()) b
a,b=map(int,input().split())
print(b//(13//min(a+1, 14)+1)*min(1, a//6))
