import java.util.Arrays;
import java.util.List;
import java.util.Scanner;
import java.util.stream.Collectors;

public class Main {

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

		int inA = 0, inB = 0;

		try {
			String[] s = scanner.nextLine().split(" ");
			inA = Integer.parseInt(s[0]);
			inB = Integer.parseInt(s[1]);
		} catch (NumberFormatException e) {
		} catch (NullPointerException e) {
		}

		scanner.close();

		if (inA >= 13) {
			System.out.println(inB);
		} else if (12 >= inA && inA >= 6) {
			System.out.println(inB / 2);
		} else {
			System.out.println(0);
		}

	}

} import java.util.Arrays; Arrays java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util import java.util.stream.Collectors; Collectors java.util.stream public class Main {

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

		int inA = 0, inB = 0;

		try {
			String[] s = scanner.nextLine().split(" ");
			inA = Integer.parseInt(s[0]);
			inB = Integer.parseInt(s[1]);
		} catch (NumberFormatException e) {
		} catch (NullPointerException e) {
		}

		scanner.close();

		if (inA >= 13) {
			System.out.println(inB);
		} else if (12 >= inA && inA >= 6) {
			System.out.println(inB / 2);
		} else {
			System.out.println(0);
		}

	}

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

		int inA = 0, inB = 0;

		try {
			String[] s = scanner.nextLine().split(" ");
			inA = Integer.parseInt(s[0]);
			inB = Integer.parseInt(s[1]);
		} catch (NumberFormatException e) {
		} catch (NullPointerException e) {
		}

		scanner.close();

		if (inA >= 13) {
			System.out.println(inB);
		} else if (12 >= inA && inA >= 6) {
			System.out.println(inB / 2);
		} else {
			System.out.println(0);
		}

	} main {
		Scanner scanner = new Scanner(System.in);

		int inA = 0, inB = 0;

		try {
			String[] s = scanner.nextLine().split(" ");
			inA = Integer.parseInt(s[0]);
			inB = Integer.parseInt(s[1]);
		} catch (NumberFormatException e) {
		} catch (NullPointerException e) {
		}

		scanner.close();

		if (inA >= 13) {
			System.out.println(inB);
		} else if (12 >= inA && inA >= 6) {
			System.out.println(inB / 2);
		} else {
			System.out.println(0);
		}

	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int inA = 0 inA 0 inB = 0; inB 0 try {
			String[] s = scanner.nextLine().split(" ");
			inA = Integer.parseInt(s[0]);
			inB = Integer.parseInt(s[1]);
		} catch (NumberFormatException e) {
		} catch (NullPointerException e) {
		} catch (NumberFormatException e) {
		} NumberFormatException e {
		} catch (NullPointerException e) {
		} NullPointerException e {
		} {
			String[] s = scanner.nextLine().split(" ");
			inA = Integer.parseInt(s[0]);
			inB = Integer.parseInt(s[1]);
		} String[] s = scanner.nextLine().split(" "); s scanner.nextLine().split(" ") scanner.nextLine().split scanner.nextLine() scanner.nextLine scanner " " inA = Integer.parseInt(s[0]) inA Integer.parseInt(s[0]) Integer.parseInt Integer s[0] s 0 inB = Integer.parseInt(s[1]) inB Integer.parseInt(s[1]) Integer.parseInt Integer s[1] s 1 scanner.close() scanner.close scanner if (inA >= 13) {
			System.out.println(inB);
		} else if (12 >= inA && inA >= 6) {
			System.out.println(inB / 2);
		} else {
			System.out.println(0);
		} inA >= 13 inA 13 {
			System.out.println(inB);
		} System.out.println(inB) System.out.println System.out System System.out inB if (12 >= inA && inA >= 6) {
			System.out.println(inB / 2);
		} else {
			System.out.println(0);
		} 12 >= inA && inA >= 6 12 >= inA 12 inA inA >= 6 inA 6 {
			System.out.println(inB / 2);
		} System.out.println(inB / 2) System.out.println System.out System System.out inB / 2 inB 2 {
			System.out.println(0);
		} System.out.println(0) System.out.println System.out System System.out 0 String[] args args public class Main {

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

		int inA = 0, inB = 0;

		try {
			String[] s = scanner.nextLine().split(" ");
			inA = Integer.parseInt(s[0]);
			inB = Integer.parseInt(s[1]);
		} catch (NumberFormatException e) {
		} catch (NullPointerException e) {
		}

		scanner.close();

		if (inA >= 13) {
			System.out.println(inB);
		} else if (12 >= inA && inA >= 6) {
			System.out.println(inB / 2);
		} else {
			System.out.println(0);
		}

	}

} public class Main {

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

		int inA = 0, inB = 0;

		try {
			String[] s = scanner.nextLine().split(" ");
			inA = Integer.parseInt(s[0]);
			inB = Integer.parseInt(s[1]);
		} catch (NumberFormatException e) {
		} catch (NullPointerException e) {
		}

		scanner.close();

		if (inA >= 13) {
			System.out.println(inB);
		} else if (12 >= inA && inA >= 6) {
			System.out.println(inB / 2);
		} else {
			System.out.println(0);
		}

	}

} Main
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;
import java.util.stream.Collectors;

public class Main {

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

		int inA = 0, inB = 0;

		try {
			String[] s = scanner.nextLine().split(" ");
			inA = Integer.parseInt(s[0]);
			inB = Integer.parseInt(s[1]);
		} catch (NumberFormatException e) {
		} catch (NullPointerException e) {
		}

		scanner.close();

		if (inA >= 13) {
			System.out.println(inB);
		} else if (12 >= inA && inA >= 6) {
			System.out.println(inB / 2);
		} else {
			System.out.println(0);
		}

	}

}
