import java.util.Scanner;

/**
 *
 * @author cs18097
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        if(a<6){
            System.out.print(0);
            return;
        }else if(a > 12){
            System.out.print(b);
            return;
        } else {
            System.out.print(b/2);
        }
        
    }
    
} import java.util.Scanner; Scanner java.util public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        if(a<6){
            System.out.print(0);
            return;
        }else if(a > 12){
            System.out.print(b);
            return;
        } else {
            System.out.print(b/2);
        }
        
    }
    
} Main /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        if(a<6){
            System.out.print(0);
            return;
        }else if(a > 12){
            System.out.print(b);
            return;
        } else {
            System.out.print(b/2);
        }
        
    } main {
        // TODO code application logic here
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        if(a<6){
            System.out.print(0);
            return;
        }else if(a > 12){
            System.out.print(b);
            return;
        } else {
            System.out.print(b/2);
        }
        
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc if(a<6){
            System.out.print(0);
            return;
        }else if(a > 12){
            System.out.print(b);
            return;
        } else {
            System.out.print(b/2);
        } a<6 a 6 {
            System.out.print(0);
            return;
        } System.out.print(0) System.out.print System.out System System.out 0 return; if(a > 12){
            System.out.print(b);
            return;
        } else {
            System.out.print(b/2);
        } a > 12 a 12 {
            System.out.print(b);
            return;
        } System.out.print(b) System.out.print System.out System System.out b return; {
            System.out.print(b/2);
        } System.out.print(b/2) System.out.print System.out System System.out b/2 b 2 String[] args args public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        if(a<6){
            System.out.print(0);
            return;
        }else if(a > 12){
            System.out.print(b);
            return;
        } else {
            System.out.print(b/2);
        }
        
    }
    
} public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        if(a<6){
            System.out.print(0);
            return;
        }else if(a > 12){
            System.out.print(b);
            return;
        } else {
            System.out.print(b/2);
        }
        
    }
    
} Main
import java.util.Scanner;

/**
 *
 * @author cs18097
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        if(a<6){
            System.out.print(0);
            return;
        }else if(a > 12){
            System.out.print(b);
            return;
        } else {
            System.out.print(b/2);
        }
        
    }
    
}
