import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int age = sc.nextInt();
        int priceB = sc.nextInt();

            if(age >= 13 ){
                System.out.println(priceB);
            }else if(age >= 6 && age <=12){
                System.out.println(priceB / 2);
            }else if(age <= 5){
                System.out.println("0");
            }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int age = sc.nextInt();
        int priceB = sc.nextInt();

            if(age >= 13 ){
                System.out.println(priceB);
            }else if(age >= 6 && age <=12){
                System.out.println(priceB / 2);
            }else if(age <= 5){
                System.out.println("0");
            }
    }
} Main public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int age = sc.nextInt();
        int priceB = sc.nextInt();

            if(age >= 13 ){
                System.out.println(priceB);
            }else if(age >= 6 && age <=12){
                System.out.println(priceB / 2);
            }else if(age <= 5){
                System.out.println("0");
            }
    } main {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int age = sc.nextInt();
        int priceB = sc.nextInt();

            if(age >= 13 ){
                System.out.println(priceB);
            }else if(age >= 6 && age <=12){
                System.out.println(priceB / 2);
            }else if(age <= 5){
                System.out.println("0");
            }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int age = sc.nextInt(); age sc.nextInt() sc.nextInt sc int priceB = sc.nextInt(); priceB sc.nextInt() sc.nextInt sc if(age >= 13 ){
                System.out.println(priceB);
            }else if(age >= 6 && age <=12){
                System.out.println(priceB / 2);
            }else if(age <= 5){
                System.out.println("0");
            } age >= 13 age 13 {
                System.out.println(priceB);
            } System.out.println(priceB) System.out.println System.out System System.out priceB if(age >= 6 && age <=12){
                System.out.println(priceB / 2);
            }else if(age <= 5){
                System.out.println("0");
            } age >= 6 && age <=12 age >= 6 age 6 age <=12 age 12 {
                System.out.println(priceB / 2);
            } System.out.println(priceB / 2) System.out.println System.out System System.out priceB / 2 priceB 2 if(age <= 5){
                System.out.println("0");
            } age <= 5 age 5 {
                System.out.println("0");
            } System.out.println("0") System.out.println System.out System System.out "0" String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int age = sc.nextInt();
        int priceB = sc.nextInt();

            if(age >= 13 ){
                System.out.println(priceB);
            }else if(age >= 6 && age <=12){
                System.out.println(priceB / 2);
            }else if(age <= 5){
                System.out.println("0");
            }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int age = sc.nextInt();
        int priceB = sc.nextInt();

            if(age >= 13 ){
                System.out.println(priceB);
            }else if(age >= 6 && age <=12){
                System.out.println(priceB / 2);
            }else if(age <= 5){
                System.out.println("0");
            }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int age = sc.nextInt();
        int priceB = sc.nextInt();

            if(age >= 13 ){
                System.out.println(priceB);
            }else if(age >= 6 && age <=12){
                System.out.println(priceB / 2);
            }else if(age <= 5){
                System.out.println("0");
            }
    }
}
