import java.util.*;

public class Main {
	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	public void run() {
		Scanner sc = new Scanner(System.in);
		int A=sc.nextInt();
		int B=sc.nextInt();
		if(6<=A && A<=12) {
			B /= 2;
		}else if(A<=5) {
			B = 0;
		}
		System.out.println(B);
		sc.close();
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	public void run() {
		Scanner sc = new Scanner(System.in);
		int A=sc.nextInt();
		int B=sc.nextInt();
		if(6<=A && A<=12) {
			B /= 2;
		}else if(A<=5) {
			B = 0;
		}
		System.out.println(B);
		sc.close();
	}
} Main public static void main(String[] args) {
		Main main = new Main();
		main.run();
	} main {
		Main main = new Main();
		main.run();
	} Main main = new Main(); main new Main() main.run() main.run main String[] args args public void run() {
		Scanner sc = new Scanner(System.in);
		int A=sc.nextInt();
		int B=sc.nextInt();
		if(6<=A && A<=12) {
			B /= 2;
		}else if(A<=5) {
			B = 0;
		}
		System.out.println(B);
		sc.close();
	} run {
		Scanner sc = new Scanner(System.in);
		int A=sc.nextInt();
		int B=sc.nextInt();
		if(6<=A && A<=12) {
			B /= 2;
		}else if(A<=5) {
			B = 0;
		}
		System.out.println(B);
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int A=sc.nextInt(); A sc.nextInt() sc.nextInt sc int B=sc.nextInt(); B sc.nextInt() sc.nextInt sc if(6<=A && A<=12) {
			B /= 2;
		}else if(A<=5) {
			B = 0;
		} 6<=A && A<=12 6<=A 6 A A<=12 A 12 {
			B /= 2;
		} B /= 2 B 2 if(A<=5) {
			B = 0;
		} A<=5 A 5 {
			B = 0;
		} B = 0 B 0 System.out.println(B) System.out.println System.out System System.out B sc.close() sc.close sc public class Main {
	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	public void run() {
		Scanner sc = new Scanner(System.in);
		int A=sc.nextInt();
		int B=sc.nextInt();
		if(6<=A && A<=12) {
			B /= 2;
		}else if(A<=5) {
			B = 0;
		}
		System.out.println(B);
		sc.close();
	}
} public class Main {
	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	public void run() {
		Scanner sc = new Scanner(System.in);
		int A=sc.nextInt();
		int B=sc.nextInt();
		if(6<=A && A<=12) {
			B /= 2;
		}else if(A<=5) {
			B = 0;
		}
		System.out.println(B);
		sc.close();
	}
} Main
import java.util.*;

public class Main {
	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	public void run() {
		Scanner sc = new Scanner(System.in);
		int A=sc.nextInt();
		int B=sc.nextInt();
		if(6<=A && A<=12) {
			B /= 2;
		}else if(A<=5) {
			B = 0;
		}
		System.out.println(B);
		sc.close();
	}
}
