import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int age = sc.nextInt();
		int fee = sc.nextInt();
		System.out.println(age >= 13 ? fee : age <= 5 ? 0 : fee / 2);
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int age = sc.nextInt();
		int fee = sc.nextInt();
		System.out.println(age >= 13 ? fee : age <= 5 ? 0 : fee / 2);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int age = sc.nextInt();
		int fee = sc.nextInt();
		System.out.println(age >= 13 ? fee : age <= 5 ? 0 : fee / 2);
	} main {
		Scanner sc = new Scanner(System.in);
		int age = sc.nextInt();
		int fee = sc.nextInt();
		System.out.println(age >= 13 ? fee : age <= 5 ? 0 : fee / 2);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int age = sc.nextInt(); age sc.nextInt() sc.nextInt sc int fee = sc.nextInt(); fee sc.nextInt() sc.nextInt sc System.out.println(age >= 13 ? fee : age <= 5 ? 0 : fee / 2) System.out.println System.out System System.out age >= 13 ? fee : age <= 5 ? 0 : fee / 2 age >= 13 age 13 fee age <= 5 ? 0 : fee / 2 age <= 5 age 5 0 fee / 2 fee 2 String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int age = sc.nextInt();
		int fee = sc.nextInt();
		System.out.println(age >= 13 ? fee : age <= 5 ? 0 : fee / 2);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int age = sc.nextInt();
		int fee = sc.nextInt();
		System.out.println(age >= 13 ? fee : age <= 5 ? 0 : fee / 2);
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int age = sc.nextInt();
		int fee = sc.nextInt();
		System.out.println(age >= 13 ? fee : age <= 5 ? 0 : fee / 2);
	}
}