import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		//Input
		Scanner sc = new Scanner(System.in);
		int A = Integer.parseInt(sc.next());
		int B = Integer.parseInt(sc.next());
		sc.close();

		//logic
		int answer = B;
		if(A <= 5){
			answer = 0;
		}else if (A > 5 && A <= 12) {
			answer /= 2;
		}

		//logic
		System.out.print(answer);

	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		//Input
		Scanner sc = new Scanner(System.in);
		int A = Integer.parseInt(sc.next());
		int B = Integer.parseInt(sc.next());
		sc.close();

		//logic
		int answer = B;
		if(A <= 5){
			answer = 0;
		}else if (A > 5 && A <= 12) {
			answer /= 2;
		}

		//logic
		System.out.print(answer);

	}

} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		//Input
		Scanner sc = new Scanner(System.in);
		int A = Integer.parseInt(sc.next());
		int B = Integer.parseInt(sc.next());
		sc.close();

		//logic
		int answer = B;
		if(A <= 5){
			answer = 0;
		}else if (A > 5 && A <= 12) {
			answer /= 2;
		}

		//logic
		System.out.print(answer);

	} main {
		// TODO 自動生成されたメソッド・スタブ
		//Input
		Scanner sc = new Scanner(System.in);
		int A = Integer.parseInt(sc.next());
		int B = Integer.parseInt(sc.next());
		sc.close();

		//logic
		int answer = B;
		if(A <= 5){
			answer = 0;
		}else if (A > 5 && A <= 12) {
			answer /= 2;
		}

		//logic
		System.out.print(answer);

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int A = Integer.parseInt(sc.next()); A Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int B = Integer.parseInt(sc.next()); B Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc sc.close() sc.close sc int answer = B; answer B if(A <= 5){
			answer = 0;
		}else if (A > 5 && A <= 12) {
			answer /= 2;
		} A <= 5 A 5 {
			answer = 0;
		} answer = 0 answer 0 if (A > 5 && A <= 12) {
			answer /= 2;
		} A > 5 && A <= 12 A > 5 A 5 A <= 12 A 12 {
			answer /= 2;
		} answer /= 2 answer 2 System.out.print(answer) System.out.print System.out System System.out answer String[] args args public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		//Input
		Scanner sc = new Scanner(System.in);
		int A = Integer.parseInt(sc.next());
		int B = Integer.parseInt(sc.next());
		sc.close();

		//logic
		int answer = B;
		if(A <= 5){
			answer = 0;
		}else if (A > 5 && A <= 12) {
			answer /= 2;
		}

		//logic
		System.out.print(answer);

	}

} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		//Input
		Scanner sc = new Scanner(System.in);
		int A = Integer.parseInt(sc.next());
		int B = Integer.parseInt(sc.next());
		sc.close();

		//logic
		int answer = B;
		if(A <= 5){
			answer = 0;
		}else if (A > 5 && A <= 12) {
			answer /= 2;
		}

		//logic
		System.out.print(answer);

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		//Input
		Scanner sc = new Scanner(System.in);
		int A = Integer.parseInt(sc.next());
		int B = Integer.parseInt(sc.next());
		sc.close();

		//logic
		int answer = B;
		if(A <= 5){
			answer = 0;
		}else if (A > 5 && A <= 12) {
			answer /= 2;
		}

		//logic
		System.out.print(answer);

	}

}
