import java.util.Scanner;

public class Main{
    public static void main(String[]args){

        Scanner sc = new Scanner(System.in);
        int A=sc.nextInt();
        int B=sc.nextInt();
        
        int price;
        
        if(A>=13) {
        	price=B;
        }
        else if(A<=12&&A>=6) {
        	price=B/2;
        }
        else {
        	price=0;
        }
        
        System.out.print(price);
        sc.close();
    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[]args){

        Scanner sc = new Scanner(System.in);
        int A=sc.nextInt();
        int B=sc.nextInt();
        
        int price;
        
        if(A>=13) {
        	price=B;
        }
        else if(A<=12&&A>=6) {
        	price=B/2;
        }
        else {
        	price=0;
        }
        
        System.out.print(price);
        sc.close();
    }
} Main public static void main(String[]args){

        Scanner sc = new Scanner(System.in);
        int A=sc.nextInt();
        int B=sc.nextInt();
        
        int price;
        
        if(A>=13) {
        	price=B;
        }
        else if(A<=12&&A>=6) {
        	price=B/2;
        }
        else {
        	price=0;
        }
        
        System.out.print(price);
        sc.close();
    } main {

        Scanner sc = new Scanner(System.in);
        int A=sc.nextInt();
        int B=sc.nextInt();
        
        int price;
        
        if(A>=13) {
        	price=B;
        }
        else if(A<=12&&A>=6) {
        	price=B/2;
        }
        else {
        	price=0;
        }
        
        System.out.print(price);
        sc.close();
    } 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 int price; price if(A>=13) {
        	price=B;
        }
        else if(A<=12&&A>=6) {
        	price=B/2;
        }
        else {
        	price=0;
        } A>=13 A 13 {
        	price=B;
        } price=B price B if(A<=12&&A>=6) {
        	price=B/2;
        }
        else {
        	price=0;
        } A<=12&&A>=6 A<=12 A 12 A>=6 A 6 {
        	price=B/2;
        } price=B/2 price B/2 B 2 {
        	price=0;
        } price=0 price 0 System.out.print(price) System.out.print System.out System System.out price sc.close() sc.close sc String[]args args public class Main{
    public static void main(String[]args){

        Scanner sc = new Scanner(System.in);
        int A=sc.nextInt();
        int B=sc.nextInt();
        
        int price;
        
        if(A>=13) {
        	price=B;
        }
        else if(A<=12&&A>=6) {
        	price=B/2;
        }
        else {
        	price=0;
        }
        
        System.out.print(price);
        sc.close();
    }
} public class Main{
    public static void main(String[]args){

        Scanner sc = new Scanner(System.in);
        int A=sc.nextInt();
        int B=sc.nextInt();
        
        int price;
        
        if(A>=13) {
        	price=B;
        }
        else if(A<=12&&A>=6) {
        	price=B/2;
        }
        else {
        	price=0;
        }
        
        System.out.print(price);
        sc.close();
    }
} Main
import java.util.Scanner;

public class Main{
    public static void main(String[]args){

        Scanner sc = new Scanner(System.in);
        int A=sc.nextInt();
        int B=sc.nextInt();
        
        int price;
        
        if(A>=13) {
        	price=B;
        }
        else if(A<=12&&A>=6) {
        	price=B/2;
        }
        else {
        	price=0;
        }
        
        System.out.print(price);
        sc.close();
    }
}