import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner input = new Scanner(System.in);
        int age = input.nextInt();
        int cost = input.nextInt();
        AtCoder_Beginner_127_Task_A atCode_127_A = new AtCoder_Beginner_127_Task_A();
        System.out.println(atCode_127_A.calFee(age,cost));
    }
}

class AtCoder_Beginner_127_Task_A{
    public int calFee(int age, int cost){
        
        if(age <= 5)
            return 0;
        
        if(age <=12)
            return cost/2;
        
        return cost;
        
    }
} import java.util.*; util.* java public class Main{
    public static void main(String[] args){
        Scanner input = new Scanner(System.in);
        int age = input.nextInt();
        int cost = input.nextInt();
        AtCoder_Beginner_127_Task_A atCode_127_A = new AtCoder_Beginner_127_Task_A();
        System.out.println(atCode_127_A.calFee(age,cost));
    }
} Main public static void main(String[] args){
        Scanner input = new Scanner(System.in);
        int age = input.nextInt();
        int cost = input.nextInt();
        AtCoder_Beginner_127_Task_A atCode_127_A = new AtCoder_Beginner_127_Task_A();
        System.out.println(atCode_127_A.calFee(age,cost));
    } main {
        Scanner input = new Scanner(System.in);
        int age = input.nextInt();
        int cost = input.nextInt();
        AtCoder_Beginner_127_Task_A atCode_127_A = new AtCoder_Beginner_127_Task_A();
        System.out.println(atCode_127_A.calFee(age,cost));
    } Scanner input = new Scanner(System.in); input new Scanner(System.in) int age = input.nextInt(); age input.nextInt() input.nextInt input int cost = input.nextInt(); cost input.nextInt() input.nextInt input AtCoder_Beginner_127_Task_A atCode_127_A = new AtCoder_Beginner_127_Task_A(); atCode_127_A new AtCoder_Beginner_127_Task_A() System.out.println(atCode_127_A.calFee(age,cost)) System.out.println System.out System System.out atCode_127_A.calFee(age,cost) atCode_127_A.calFee atCode_127_A age cost String[] args args class AtCoder_Beginner_127_Task_A{
    public int calFee(int age, int cost){
        
        if(age <= 5)
            return 0;
        
        if(age <=12)
            return cost/2;
        
        return cost;
        
    }
} AtCoder_Beginner_127_Task_A public int calFee(int age, int cost){
        
        if(age <= 5)
            return 0;
        
        if(age <=12)
            return cost/2;
        
        return cost;
        
    } calFee {
        
        if(age <= 5)
            return 0;
        
        if(age <=12)
            return cost/2;
        
        return cost;
        
    } if(age <= 5)
            return 0; age <= 5 age 5 return 0; 0 if(age <=12)
            return cost/2; age <=12 age 12 return cost/2; cost/2 cost 2 return cost; cost int age age int cost cost public class Main{
    public static void main(String[] args){
        Scanner input = new Scanner(System.in);
        int age = input.nextInt();
        int cost = input.nextInt();
        AtCoder_Beginner_127_Task_A atCode_127_A = new AtCoder_Beginner_127_Task_A();
        System.out.println(atCode_127_A.calFee(age,cost));
    }
} public class Main{
    public static void main(String[] args){
        Scanner input = new Scanner(System.in);
        int age = input.nextInt();
        int cost = input.nextInt();
        AtCoder_Beginner_127_Task_A atCode_127_A = new AtCoder_Beginner_127_Task_A();
        System.out.println(atCode_127_A.calFee(age,cost));
    }
} Main
import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner input = new Scanner(System.in);
        int age = input.nextInt();
        int cost = input.nextInt();
        AtCoder_Beginner_127_Task_A atCode_127_A = new AtCoder_Beginner_127_Task_A();
        System.out.println(atCode_127_A.calFee(age,cost));
    }
}

class AtCoder_Beginner_127_Task_A{
    public int calFee(int age, int cost){
        
        if(age <= 5)
            return 0;
        
        if(age <=12)
            return cost/2;
        
        return cost;
        
    }
}