import java.util.Scanner;

class Main {
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int A=Integer.parseInt(sc.next());
		int B=Integer.parseInt(sc.next());
		if(A >= 13) {

		}else if(A <= 5) {
			B = 0;

		} else {
			B /=2;

		}
		System.out.println(B);
	}
} import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int A=Integer.parseInt(sc.next());
		int B=Integer.parseInt(sc.next());
		if(A >= 13) {

		}else if(A <= 5) {
			B = 0;

		} else {
			B /=2;

		}
		System.out.println(B);
	}
} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int A=Integer.parseInt(sc.next());
		int B=Integer.parseInt(sc.next());
		if(A >= 13) {

		}else if(A <= 5) {
			B = 0;

		} else {
			B /=2;

		}
		System.out.println(B);
	} main {

		Scanner sc = new Scanner(System.in);
		int A=Integer.parseInt(sc.next());
		int B=Integer.parseInt(sc.next());
		if(A >= 13) {

		}else if(A <= 5) {
			B = 0;

		} else {
			B /=2;

		}
		System.out.println(B);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int A=Integer.parseInt(sc.next()); A Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int B=Integer.parseInt(sc.next()); B Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc if(A >= 13) {

		}else if(A <= 5) {
			B = 0;

		} else {
			B /=2;

		} A >= 13 A 13 {

		} if(A <= 5) {
			B = 0;

		} else {
			B /=2;

		} A <= 5 A 5 {
			B = 0;

		} B = 0 B 0 {
			B /=2;

		} B /=2 B 2 System.out.println(B) System.out.println System.out System System.out B String[] args args
import java.util.Scanner;

class Main {
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int A=Integer.parseInt(sc.next());
		int B=Integer.parseInt(sc.next());
		if(A >= 13) {

		}else if(A <= 5) {
			B = 0;

		} else {
			B /=2;

		}
		System.out.println(B);
	}
}
