import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int age = in.nextInt();
		int cost = in.nextInt();
		in.close();
		int ans = age > 12 ? cost
				: age < 6 ? 0
				: cost / 2;
		System.out.println(ans);
	}

} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int age = in.nextInt();
		int cost = in.nextInt();
		in.close();
		int ans = age > 12 ? cost
				: age < 6 ? 0
				: cost / 2;
		System.out.println(ans);
	}

} Main public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int age = in.nextInt();
		int cost = in.nextInt();
		in.close();
		int ans = age > 12 ? cost
				: age < 6 ? 0
				: cost / 2;
		System.out.println(ans);
	} main {
		Scanner in = new Scanner(System.in);
		int age = in.nextInt();
		int cost = in.nextInt();
		in.close();
		int ans = age > 12 ? cost
				: age < 6 ? 0
				: cost / 2;
		System.out.println(ans);
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int age = in.nextInt(); age in.nextInt() in.nextInt in int cost = in.nextInt(); cost in.nextInt() in.nextInt in in.close() in.close in int ans = age > 12 ? cost
				: age < 6 ? 0
				: cost / 2; ans age > 12 ? cost
				: age < 6 ? 0
				: cost / 2 age > 12 age 12 cost age < 6 ? 0
				: cost / 2 age < 6 age 6 0 cost / 2 cost 2 System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int age = in.nextInt();
		int cost = in.nextInt();
		in.close();
		int ans = age > 12 ? cost
				: age < 6 ? 0
				: cost / 2;
		System.out.println(ans);
	}

} public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int age = in.nextInt();
		int cost = in.nextInt();
		in.close();
		int ans = age > 12 ? cost
				: age < 6 ? 0
				: cost / 2;
		System.out.println(ans);
	}

} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int age = in.nextInt();
		int cost = in.nextInt();
		in.close();
		int ans = age > 12 ? cost
				: age < 6 ? 0
				: cost / 2;
		System.out.println(ans);
	}

}