import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int X = sc.nextInt();
		int Y = sc.nextInt();

		if(X>=13) {
			System.out.println(Y);
		}else {
			if(X<=5) {
				System.out.println(0);
			}else {
				System.out.println(Y/2);
			}
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int X = sc.nextInt();
		int Y = sc.nextInt();

		if(X>=13) {
			System.out.println(Y);
		}else {
			if(X<=5) {
				System.out.println(0);
			}else {
				System.out.println(Y/2);
			}
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int X = sc.nextInt();
		int Y = sc.nextInt();

		if(X>=13) {
			System.out.println(Y);
		}else {
			if(X<=5) {
				System.out.println(0);
			}else {
				System.out.println(Y/2);
			}
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int X = sc.nextInt();
		int Y = sc.nextInt();

		if(X>=13) {
			System.out.println(Y);
		}else {
			if(X<=5) {
				System.out.println(0);
			}else {
				System.out.println(Y/2);
			}
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int X = sc.nextInt(); X sc.nextInt() sc.nextInt sc int Y = sc.nextInt(); Y sc.nextInt() sc.nextInt sc if(X>=13) {
			System.out.println(Y);
		}else {
			if(X<=5) {
				System.out.println(0);
			}else {
				System.out.println(Y/2);
			}
		} X>=13 X 13 {
			System.out.println(Y);
		} System.out.println(Y) System.out.println System.out System System.out Y {
			if(X<=5) {
				System.out.println(0);
			}else {
				System.out.println(Y/2);
			}
		} if(X<=5) {
				System.out.println(0);
			}else {
				System.out.println(Y/2);
			} X<=5 X 5 {
				System.out.println(0);
			} System.out.println(0) System.out.println System.out System System.out 0 {
				System.out.println(Y/2);
			} System.out.println(Y/2) System.out.println System.out System System.out Y/2 Y 2 String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int X = sc.nextInt();
		int Y = sc.nextInt();

		if(X>=13) {
			System.out.println(Y);
		}else {
			if(X<=5) {
				System.out.println(0);
			}else {
				System.out.println(Y/2);
			}
		}
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int X = sc.nextInt();
		int Y = sc.nextInt();

		if(X>=13) {
			System.out.println(Y);
		}else {
			if(X<=5) {
				System.out.println(0);
			}else {
				System.out.println(Y/2);
			}
		}
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int X = sc.nextInt();
		int Y = sc.nextInt();

		if(X>=13) {
			System.out.println(Y);
		}else {
			if(X<=5) {
				System.out.println(0);
			}else {
				System.out.println(Y/2);
			}
		}
	}
}
