import java.util.Scanner;

public class Main {

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

	public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			int a = scanner.nextInt(), b = scanner.nextInt();
			System.out.println((a < 6) ? 0 : (a > 12) ? b : b / 2);
		}
	}
} Main public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			int a = scanner.nextInt(), b = scanner.nextInt();
			System.out.println((a < 6) ? 0 : (a > 12) ? b : b / 2);
		}
	} main {
		try (Scanner scanner = new Scanner(System.in)) {
			int a = scanner.nextInt(), b = scanner.nextInt();
			System.out.println((a < 6) ? 0 : (a > 12) ? b : b / 2);
		}
	} try (Scanner scanner = new Scanner(System.in)) {
			int a = scanner.nextInt(), b = scanner.nextInt();
			System.out.println((a < 6) ? 0 : (a > 12) ? b : b / 2);
		} {
			int a = scanner.nextInt(), b = scanner.nextInt();
			System.out.println((a < 6) ? 0 : (a > 12) ? b : b / 2);
		} Scanner scanner = new Scanner(System.in) Scanner scanner = new Scanner(System.in) new Scanner(System.in) int a = scanner.nextInt() a scanner.nextInt() scanner.nextInt scanner b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner System.out.println((a < 6) ? 0 : (a > 12) ? b : b / 2) System.out.println System.out System System.out (a < 6) ? 0 : (a > 12) ? b : b / 2 (a < 6) a 6 0 (a > 12) ? b : b / 2 (a > 12) a 12 b b / 2 b 2 String[] args args public class Main {

	public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			int a = scanner.nextInt(), b = scanner.nextInt();
			System.out.println((a < 6) ? 0 : (a > 12) ? b : b / 2);
		}
	}
} public class Main {

	public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			int a = scanner.nextInt(), b = scanner.nextInt();
			System.out.println((a < 6) ? 0 : (a > 12) ? b : b / 2);
		}
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			int a = scanner.nextInt(), b = scanner.nextInt();
			System.out.println((a < 6) ? 0 : (a > 12) ? b : b / 2);
		}
	}
}
