import java.util.*;

public class Main { 
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
		int age = Integer.parseInt(sc.next());
        int cost = Integer.parseInt(sc.next());
      if (age <= 5) {
        System.out.println(0);
    } else if (age <= 12) {
        System.out.println(cost/2);
    } else {
    	System.out.println(cost);
    }
  }
} import java.util.*; util.* java public class Main { 
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
		int age = Integer.parseInt(sc.next());
        int cost = Integer.parseInt(sc.next());
      if (age <= 5) {
        System.out.println(0);
    } else if (age <= 12) {
        System.out.println(cost/2);
    } else {
    	System.out.println(cost);
    }
  }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
		int age = Integer.parseInt(sc.next());
        int cost = Integer.parseInt(sc.next());
      if (age <= 5) {
        System.out.println(0);
    } else if (age <= 12) {
        System.out.println(cost/2);
    } else {
    	System.out.println(cost);
    }
  } main {
        Scanner sc = new Scanner(System.in);
		int age = Integer.parseInt(sc.next());
        int cost = Integer.parseInt(sc.next());
      if (age <= 5) {
        System.out.println(0);
    } else if (age <= 12) {
        System.out.println(cost/2);
    } else {
    	System.out.println(cost);
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int age = Integer.parseInt(sc.next()); age Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int cost = Integer.parseInt(sc.next()); cost Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc if (age <= 5) {
        System.out.println(0);
    } else if (age <= 12) {
        System.out.println(cost/2);
    } else {
    	System.out.println(cost);
    } age <= 5 age 5 {
        System.out.println(0);
    } System.out.println(0) System.out.println System.out System System.out 0 if (age <= 12) {
        System.out.println(cost/2);
    } else {
    	System.out.println(cost);
    } age <= 12 age 12 {
        System.out.println(cost/2);
    } System.out.println(cost/2) System.out.println System.out System System.out cost/2 cost 2 {
    	System.out.println(cost);
    } System.out.println(cost) System.out.println System.out System System.out cost String[] args args public class Main { 
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
		int age = Integer.parseInt(sc.next());
        int cost = Integer.parseInt(sc.next());
      if (age <= 5) {
        System.out.println(0);
    } else if (age <= 12) {
        System.out.println(cost/2);
    } else {
    	System.out.println(cost);
    }
  }
} public class Main { 
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
		int age = Integer.parseInt(sc.next());
        int cost = Integer.parseInt(sc.next());
      if (age <= 5) {
        System.out.println(0);
    } else if (age <= 12) {
        System.out.println(cost/2);
    } else {
    	System.out.println(cost);
    }
  }
} Main
import java.util.*;

public class Main { 
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
		int age = Integer.parseInt(sc.next());
        int cost = Integer.parseInt(sc.next());
      if (age <= 5) {
        System.out.println(0);
    } else if (age <= 12) {
        System.out.println(cost/2);
    } else {
    	System.out.println(cost);
    }
  }
}