import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int m = sc.nextInt();
		int n = sc.nextInt();

		if (m <= 5) {
			System.out.println(0);
		} else if (m < 13) {
			System.out.println(n / 2);
		} else {
			System.out.println(n);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int m = sc.nextInt();
		int n = sc.nextInt();

		if (m <= 5) {
			System.out.println(0);
		} else if (m < 13) {
			System.out.println(n / 2);
		} else {
			System.out.println(n);
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int m = sc.nextInt();
		int n = sc.nextInt();

		if (m <= 5) {
			System.out.println(0);
		} else if (m < 13) {
			System.out.println(n / 2);
		} else {
			System.out.println(n);
		}
	} main {
		Scanner sc = new Scanner(System.in);

		int m = sc.nextInt();
		int n = sc.nextInt();

		if (m <= 5) {
			System.out.println(0);
		} else if (m < 13) {
			System.out.println(n / 2);
		} else {
			System.out.println(n);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int m = sc.nextInt(); m sc.nextInt() sc.nextInt sc int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc if (m <= 5) {
			System.out.println(0);
		} else if (m < 13) {
			System.out.println(n / 2);
		} else {
			System.out.println(n);
		} m <= 5 m 5 {
			System.out.println(0);
		} System.out.println(0) System.out.println System.out System System.out 0 if (m < 13) {
			System.out.println(n / 2);
		} else {
			System.out.println(n);
		} m < 13 m 13 {
			System.out.println(n / 2);
		} System.out.println(n / 2) System.out.println System.out System System.out n / 2 n 2 {
			System.out.println(n);
		} System.out.println(n) System.out.println System.out System System.out n String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int m = sc.nextInt();
		int n = sc.nextInt();

		if (m <= 5) {
			System.out.println(0);
		} else if (m < 13) {
			System.out.println(n / 2);
		} else {
			System.out.println(n);
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int m = sc.nextInt();
		int n = sc.nextInt();

		if (m <= 5) {
			System.out.println(0);
		} else if (m < 13) {
			System.out.println(n / 2);
		} else {
			System.out.println(n);
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int m = sc.nextInt();
		int n = sc.nextInt();

		if (m <= 5) {
			System.out.println(0);
		} else if (m < 13) {
			System.out.println(n / 2);
		} else {
			System.out.println(n);
		}
	}
}