import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		int a, b;
		Scanner scanner = new Scanner (System.in);
		a = scanner.nextInt();
		b = scanner.nextInt();

		if(a >= 13) {
			System.out.println(b);
		}else if(a >=6 && a <= 12) {
			System.out.println(b/2);
		}else {
			System.out.println("0\n");
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		int a, b;
		Scanner scanner = new Scanner (System.in);
		a = scanner.nextInt();
		b = scanner.nextInt();

		if(a >= 13) {
			System.out.println(b);
		}else if(a >=6 && a <= 12) {
			System.out.println(b/2);
		}else {
			System.out.println("0\n");
		}
	}
} Main public static void main(String[] args) {
		int a, b;
		Scanner scanner = new Scanner (System.in);
		a = scanner.nextInt();
		b = scanner.nextInt();

		if(a >= 13) {
			System.out.println(b);
		}else if(a >=6 && a <= 12) {
			System.out.println(b/2);
		}else {
			System.out.println("0\n");
		}
	} main {
		int a, b;
		Scanner scanner = new Scanner (System.in);
		a = scanner.nextInt();
		b = scanner.nextInt();

		if(a >= 13) {
			System.out.println(b);
		}else if(a >=6 && a <= 12) {
			System.out.println(b/2);
		}else {
			System.out.println("0\n");
		}
	} int a a b; b Scanner scanner = new Scanner (System.in); scanner new Scanner (System.in) a = scanner.nextInt() a scanner.nextInt() scanner.nextInt scanner b = scanner.nextInt() b scanner.nextInt() scanner.nextInt scanner if(a >= 13) {
			System.out.println(b);
		}else if(a >=6 && a <= 12) {
			System.out.println(b/2);
		}else {
			System.out.println("0\n");
		} a >= 13 a 13 {
			System.out.println(b);
		} System.out.println(b) System.out.println System.out System System.out b if(a >=6 && a <= 12) {
			System.out.println(b/2);
		}else {
			System.out.println("0\n");
		} a >=6 && a <= 12 a >=6 a 6 a <= 12 a 12 {
			System.out.println(b/2);
		} System.out.println(b/2) System.out.println System.out System System.out b/2 b 2 {
			System.out.println("0\n");
		} System.out.println("0\n") System.out.println System.out System System.out "0\n" String[] args args public class Main {

	public static void main(String[] args) {
		int a, b;
		Scanner scanner = new Scanner (System.in);
		a = scanner.nextInt();
		b = scanner.nextInt();

		if(a >= 13) {
			System.out.println(b);
		}else if(a >=6 && a <= 12) {
			System.out.println(b/2);
		}else {
			System.out.println("0\n");
		}
	}
} public class Main {

	public static void main(String[] args) {
		int a, b;
		Scanner scanner = new Scanner (System.in);
		a = scanner.nextInt();
		b = scanner.nextInt();

		if(a >= 13) {
			System.out.println(b);
		}else if(a >=6 && a <= 12) {
			System.out.println(b/2);
		}else {
			System.out.println("0\n");
		}
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		int a, b;
		Scanner scanner = new Scanner (System.in);
		a = scanner.nextInt();
		b = scanner.nextInt();

		if(a >= 13) {
			System.out.println(b);
		}else if(a >=6 && a <= 12) {
			System.out.println(b/2);
		}else {
			System.out.println("0\n");
		}
	}
}