import java.util.Scanner;
public class Main {

	
	public static void main(String[]args) {
		
		Scanner tc = new Scanner(System.in);
		
		int x = tc.nextInt();
		int y = tc.nextInt();
		
		if(x <= 5)
			System.out.println("0");
		else if(x >= 6 && x <= 12) {
			y = (int)(y/2);
			System.out.println(y);
		}
		else 
			System.out.println(y);
			
	}
} import java.util.Scanner; Scanner java.util public class Main {

	
	public static void main(String[]args) {
		
		Scanner tc = new Scanner(System.in);
		
		int x = tc.nextInt();
		int y = tc.nextInt();
		
		if(x <= 5)
			System.out.println("0");
		else if(x >= 6 && x <= 12) {
			y = (int)(y/2);
			System.out.println(y);
		}
		else 
			System.out.println(y);
			
	}
} Main public static void main(String[]args) {
		
		Scanner tc = new Scanner(System.in);
		
		int x = tc.nextInt();
		int y = tc.nextInt();
		
		if(x <= 5)
			System.out.println("0");
		else if(x >= 6 && x <= 12) {
			y = (int)(y/2);
			System.out.println(y);
		}
		else 
			System.out.println(y);
			
	} main {
		
		Scanner tc = new Scanner(System.in);
		
		int x = tc.nextInt();
		int y = tc.nextInt();
		
		if(x <= 5)
			System.out.println("0");
		else if(x >= 6 && x <= 12) {
			y = (int)(y/2);
			System.out.println(y);
		}
		else 
			System.out.println(y);
			
	} Scanner tc = new Scanner(System.in); tc new Scanner(System.in) int x = tc.nextInt(); x tc.nextInt() tc.nextInt tc int y = tc.nextInt(); y tc.nextInt() tc.nextInt tc if(x <= 5)
			System.out.println("0");
		else if(x >= 6 && x <= 12) {
			y = (int)(y/2);
			System.out.println(y);
		}
		else 
			System.out.println(y); x <= 5 x 5 System.out.println("0") System.out.println System.out System System.out "0" if(x >= 6 && x <= 12) {
			y = (int)(y/2);
			System.out.println(y);
		}
		else 
			System.out.println(y); x >= 6 && x <= 12 x >= 6 x 6 x <= 12 x 12 {
			y = (int)(y/2);
			System.out.println(y);
		} y = (int)(y/2) y (int)(y/2) y 2 System.out.println(y) System.out.println System.out System System.out y System.out.println(y) System.out.println System.out System System.out y String[]args args public class Main {

	
	public static void main(String[]args) {
		
		Scanner tc = new Scanner(System.in);
		
		int x = tc.nextInt();
		int y = tc.nextInt();
		
		if(x <= 5)
			System.out.println("0");
		else if(x >= 6 && x <= 12) {
			y = (int)(y/2);
			System.out.println(y);
		}
		else 
			System.out.println(y);
			
	}
} public class Main {

	
	public static void main(String[]args) {
		
		Scanner tc = new Scanner(System.in);
		
		int x = tc.nextInt();
		int y = tc.nextInt();
		
		if(x <= 5)
			System.out.println("0");
		else if(x >= 6 && x <= 12) {
			y = (int)(y/2);
			System.out.println(y);
		}
		else 
			System.out.println(y);
			
	}
} Main
import java.util.Scanner;
public class Main {

	
	public static void main(String[]args) {
		
		Scanner tc = new Scanner(System.in);
		
		int x = tc.nextInt();
		int y = tc.nextInt();
		
		if(x <= 5)
			System.out.println("0");
		else if(x >= 6 && x <= 12) {
			y = (int)(y/2);
			System.out.println(y);
		}
		else 
			System.out.println(y);
			
	}
}
