import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int year = sc.nextInt();
        int yen = sc.nextInt();
        
        if(year >= 13){
            System.out.print(yen);
        }else if(12 >= year && year >= 6){
            System.out.print(String.valueOf(yen/2));
        }else{
            System.out.print('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 year = sc.nextInt();
        int yen = sc.nextInt();
        
        if(year >= 13){
            System.out.print(yen);
        }else if(12 >= year && year >= 6){
            System.out.print(String.valueOf(yen/2));
        }else{
            System.out.print('0');
        }
    }
} Main public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int year = sc.nextInt();
        int yen = sc.nextInt();
        
        if(year >= 13){
            System.out.print(yen);
        }else if(12 >= year && year >= 6){
            System.out.print(String.valueOf(yen/2));
        }else{
            System.out.print('0');
        }
    } main {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int year = sc.nextInt();
        int yen = sc.nextInt();
        
        if(year >= 13){
            System.out.print(yen);
        }else if(12 >= year && year >= 6){
            System.out.print(String.valueOf(yen/2));
        }else{
            System.out.print('0');
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int year = sc.nextInt(); year sc.nextInt() sc.nextInt sc int yen = sc.nextInt(); yen sc.nextInt() sc.nextInt sc if(year >= 13){
            System.out.print(yen);
        }else if(12 >= year && year >= 6){
            System.out.print(String.valueOf(yen/2));
        }else{
            System.out.print('0');
        } year >= 13 year 13 {
            System.out.print(yen);
        } System.out.print(yen) System.out.print System.out System System.out yen if(12 >= year && year >= 6){
            System.out.print(String.valueOf(yen/2));
        }else{
            System.out.print('0');
        } 12 >= year && year >= 6 12 >= year 12 year year >= 6 year 6 {
            System.out.print(String.valueOf(yen/2));
        } System.out.print(String.valueOf(yen/2)) System.out.print System.out System System.out String.valueOf(yen/2) String.valueOf String yen/2 yen 2 {
            System.out.print('0');
        } System.out.print('0') System.out.print 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 year = sc.nextInt();
        int yen = sc.nextInt();
        
        if(year >= 13){
            System.out.print(yen);
        }else if(12 >= year && year >= 6){
            System.out.print(String.valueOf(yen/2));
        }else{
            System.out.print('0');
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int year = sc.nextInt();
        int yen = sc.nextInt();
        
        if(year >= 13){
            System.out.print(yen);
        }else if(12 >= year && year >= 6){
            System.out.print(String.valueOf(yen/2));
        }else{
            System.out.print('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 year = sc.nextInt();
        int yen = sc.nextInt();
        
        if(year >= 13){
            System.out.print(yen);
        }else if(12 >= year && year >= 6){
            System.out.print(String.valueOf(yen/2));
        }else{
            System.out.print('0');
        }
    }
}
