import java.util.Arrays;
import java.util.Scanner;

public class Main {
public static void main(String[] args) {
		
		Scanner keyboard = new Scanner(System.in); 
		
		int A = keyboard.nextInt();
		int B = keyboard.nextInt();
		
		int ans = 0;
		
		if (A >= 13) {
			ans = B;
		}else if(A >= 6) {
			ans = B / 2;
		}else {
			ans = 0;
		}
		
		System.out.print(ans);
		keyboard.close();	
	}
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
public static void main(String[] args) {
		
		Scanner keyboard = new Scanner(System.in); 
		
		int A = keyboard.nextInt();
		int B = keyboard.nextInt();
		
		int ans = 0;
		
		if (A >= 13) {
			ans = B;
		}else if(A >= 6) {
			ans = B / 2;
		}else {
			ans = 0;
		}
		
		System.out.print(ans);
		keyboard.close();	
	}
} Main public static void main(String[] args) {
		
		Scanner keyboard = new Scanner(System.in); 
		
		int A = keyboard.nextInt();
		int B = keyboard.nextInt();
		
		int ans = 0;
		
		if (A >= 13) {
			ans = B;
		}else if(A >= 6) {
			ans = B / 2;
		}else {
			ans = 0;
		}
		
		System.out.print(ans);
		keyboard.close();	
	} main {
		
		Scanner keyboard = new Scanner(System.in); 
		
		int A = keyboard.nextInt();
		int B = keyboard.nextInt();
		
		int ans = 0;
		
		if (A >= 13) {
			ans = B;
		}else if(A >= 6) {
			ans = B / 2;
		}else {
			ans = 0;
		}
		
		System.out.print(ans);
		keyboard.close();	
	} Scanner keyboard = new Scanner(System.in); keyboard new Scanner(System.in) int A = keyboard.nextInt(); A keyboard.nextInt() keyboard.nextInt keyboard int B = keyboard.nextInt(); B keyboard.nextInt() keyboard.nextInt keyboard int ans = 0; ans 0 if (A >= 13) {
			ans = B;
		}else if(A >= 6) {
			ans = B / 2;
		}else {
			ans = 0;
		} A >= 13 A 13 {
			ans = B;
		} ans = B ans B if(A >= 6) {
			ans = B / 2;
		}else {
			ans = 0;
		} A >= 6 A 6 {
			ans = B / 2;
		} ans = B / 2 ans B / 2 B 2 {
			ans = 0;
		} ans = 0 ans 0 System.out.print(ans) System.out.print System.out System System.out ans keyboard.close() keyboard.close keyboard String[] args args public class Main {
public static void main(String[] args) {
		
		Scanner keyboard = new Scanner(System.in); 
		
		int A = keyboard.nextInt();
		int B = keyboard.nextInt();
		
		int ans = 0;
		
		if (A >= 13) {
			ans = B;
		}else if(A >= 6) {
			ans = B / 2;
		}else {
			ans = 0;
		}
		
		System.out.print(ans);
		keyboard.close();	
	}
} public class Main {
public static void main(String[] args) {
		
		Scanner keyboard = new Scanner(System.in); 
		
		int A = keyboard.nextInt();
		int B = keyboard.nextInt();
		
		int ans = 0;
		
		if (A >= 13) {
			ans = B;
		}else if(A >= 6) {
			ans = B / 2;
		}else {
			ans = 0;
		}
		
		System.out.print(ans);
		keyboard.close();	
	}
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {
public static void main(String[] args) {
		
		Scanner keyboard = new Scanner(System.in); 
		
		int A = keyboard.nextInt();
		int B = keyboard.nextInt();
		
		int ans = 0;
		
		if (A >= 13) {
			ans = B;
		}else if(A >= 6) {
			ans = B / 2;
		}else {
			ans = 0;
		}
		
		System.out.print(ans);
		keyboard.close();	
	}
}
