import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
// import java.util.Scanner;


class Main {
    // static Scanner sc;
    static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    public static void main(final String[] args) throws NumberFormatException, IOException {

        // sc = new Scanner(System.in);
        String[] input = br.readLine().split(" ");
        int age = Integer.parseInt(input[0]);
        int cost = Integer.parseInt(input[1]);

        if(age < 13){
            if(age >=6){
                cost = cost/2;
            }else{
                cost = 0;
            }
        }

        System.out.println(cost);
    
    }

    // public static int parseNumber() throws NumberFormatException, IOException {
    //     return Integer.parseInt(sc.nextLine());
    // }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io class Main {
    // static Scanner sc;
    static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    public static void main(final String[] args) throws NumberFormatException, IOException {

        // sc = new Scanner(System.in);
        String[] input = br.readLine().split(" ");
        int age = Integer.parseInt(input[0]);
        int cost = Integer.parseInt(input[1]);

        if(age < 13){
            if(age >=6){
                cost = cost/2;
            }else{
                cost = 0;
            }
        }

        System.out.println(cost);
    
    }

    // public static int parseNumber() throws NumberFormatException, IOException {
    //     return Integer.parseInt(sc.nextLine());
    // }
} Main // static Scanner sc;
    static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) public static void main(final String[] args) throws NumberFormatException, IOException {

        // sc = new Scanner(System.in);
        String[] input = br.readLine().split(" ");
        int age = Integer.parseInt(input[0]);
        int cost = Integer.parseInt(input[1]);

        if(age < 13){
            if(age >=6){
                cost = cost/2;
            }else{
                cost = 0;
            }
        }

        System.out.println(cost);
    
    } main {

        // sc = new Scanner(System.in);
        String[] input = br.readLine().split(" ");
        int age = Integer.parseInt(input[0]);
        int cost = Integer.parseInt(input[1]);

        if(age < 13){
            if(age >=6){
                cost = cost/2;
            }else{
                cost = 0;
            }
        }

        System.out.println(cost);
    
    } String[] input = br.readLine().split(" "); input br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int age = Integer.parseInt(input[0]); age Integer.parseInt(input[0]) Integer.parseInt Integer input[0] input 0 int cost = Integer.parseInt(input[1]); cost Integer.parseInt(input[1]) Integer.parseInt Integer input[1] input 1 if(age < 13){
            if(age >=6){
                cost = cost/2;
            }else{
                cost = 0;
            }
        } age < 13 age 13 {
            if(age >=6){
                cost = cost/2;
            }else{
                cost = 0;
            }
        } if(age >=6){
                cost = cost/2;
            }else{
                cost = 0;
            } age >=6 age 6 {
                cost = cost/2;
            } cost = cost/2 cost cost/2 cost 2 {
                cost = 0;
            } cost = 0 cost 0 System.out.println(cost) System.out.println System.out System System.out cost final String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
// import java.util.Scanner;


class Main {
    // static Scanner sc;
    static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    public static void main(final String[] args) throws NumberFormatException, IOException {

        // sc = new Scanner(System.in);
        String[] input = br.readLine().split(" ");
        int age = Integer.parseInt(input[0]);
        int cost = Integer.parseInt(input[1]);

        if(age < 13){
            if(age >=6){
                cost = cost/2;
            }else{
                cost = 0;
            }
        }

        System.out.println(cost);
    
    }

    // public static int parseNumber() throws NumberFormatException, IOException {
    //     return Integer.parseInt(sc.nextLine());
    // }
}