import java.util.Scanner;

public class Main {

	private static Scanner sc;

	public static void main(String[] args) {
		sc = new Scanner(System.in);
		Integer age = sc.nextInt();
		Integer price = sc.nextInt();

		System.out.println(calc(age,price));
	}

	private static Integer calc(Integer age, Integer price) {
		if (age<6) {
			return 0;
		} else if (age<13) {
			return (price / 2);
		} else {
			return price;
		}
	}


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

	private static Scanner sc;

	public static void main(String[] args) {
		sc = new Scanner(System.in);
		Integer age = sc.nextInt();
		Integer price = sc.nextInt();

		System.out.println(calc(age,price));
	}

	private static Integer calc(Integer age, Integer price) {
		if (age<6) {
			return 0;
		} else if (age<13) {
			return (price / 2);
		} else {
			return price;
		}
	}


} Main private static Scanner sc; sc public static void main(String[] args) {
		sc = new Scanner(System.in);
		Integer age = sc.nextInt();
		Integer price = sc.nextInt();

		System.out.println(calc(age,price));
	} main {
		sc = new Scanner(System.in);
		Integer age = sc.nextInt();
		Integer price = sc.nextInt();

		System.out.println(calc(age,price));
	} sc = new Scanner(System.in) sc new Scanner(System.in) Integer age = sc.nextInt(); age sc.nextInt() sc.nextInt sc Integer price = sc.nextInt(); price sc.nextInt() sc.nextInt sc System.out.println(calc(age,price)) System.out.println System.out System System.out calc(age,price) calc age price String[] args args private static Integer calc(Integer age, Integer price) {
		if (age<6) {
			return 0;
		} else if (age<13) {
			return (price / 2);
		} else {
			return price;
		}
	} calc {
		if (age<6) {
			return 0;
		} else if (age<13) {
			return (price / 2);
		} else {
			return price;
		}
	} if (age<6) {
			return 0;
		} else if (age<13) {
			return (price / 2);
		} else {
			return price;
		} age<6 age 6 {
			return 0;
		} return 0; 0 if (age<13) {
			return (price / 2);
		} else {
			return price;
		} age<13 age 13 {
			return (price / 2);
		} return (price / 2); (price / 2) price 2 {
			return price;
		} return price; price Integer age age Integer price price public class Main {

	private static Scanner sc;

	public static void main(String[] args) {
		sc = new Scanner(System.in);
		Integer age = sc.nextInt();
		Integer price = sc.nextInt();

		System.out.println(calc(age,price));
	}

	private static Integer calc(Integer age, Integer price) {
		if (age<6) {
			return 0;
		} else if (age<13) {
			return (price / 2);
		} else {
			return price;
		}
	}


} public class Main {

	private static Scanner sc;

	public static void main(String[] args) {
		sc = new Scanner(System.in);
		Integer age = sc.nextInt();
		Integer price = sc.nextInt();

		System.out.println(calc(age,price));
	}

	private static Integer calc(Integer age, Integer price) {
		if (age<6) {
			return 0;
		} else if (age<13) {
			return (price / 2);
		} else {
			return price;
		}
	}


} Main
import java.util.Scanner;

public class Main {

	private static Scanner sc;

	public static void main(String[] args) {
		sc = new Scanner(System.in);
		Integer age = sc.nextInt();
		Integer price = sc.nextInt();

		System.out.println(calc(age,price));
	}

	private static Integer calc(Integer age, Integer price) {
		if (age<6) {
			return 0;
		} else if (age<13) {
			return (price / 2);
		} else {
			return price;
		}
	}


}
