import java.io.*;
import java.util.*;

public class Main {

    public static void main(String[] args) {
        try (CustomReader in = new CustomReader()) {
            new Main().execute(in);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public void execute(CustomReader in) throws IOException {
        Scanner sc = new Scanner(in);
        int A = sc.nextInt();
        int B = sc.nextInt();

        if (A < 6) {
            System.out.println(0);

        }else if (6<=A && A<=12){
            System.out.println(B / 2);
        }else{
            System.out.println(B);
        }

    }

    static class CustomReader extends BufferedReader {

        public CustomReader() throws IOException {
            super(new InputStreamReader(System.in));
        }

        public int[] readLineAsIntArray() throws IOException {
            String[] strArray = this.readLine().split(" ");
            int[] intArray = new int[strArray.length];
            for (int i = 0, n = strArray.length; i < n; i++) {
                intArray[i] = Integer.parseInt(strArray[i]);
            }
            return intArray;
        }

        public int[][] readAsIntMatrix(int rows, int columns) throws IOException {
            int[][] matrix = new int[rows][columns];
            for (int i = 0; i < rows; i++) {
                String[] r = this.readLine().split(" ");
                for (int j = 0; j < columns; j++) {
                    matrix[i][j] = Integer.parseInt(r[j]);
                }
            }
            return matrix;
        }

    }
} import java.io.*; io.* java import java.util.*; util.* java public class Main {

    public static void main(String[] args) {
        try (CustomReader in = new CustomReader()) {
            new Main().execute(in);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public void execute(CustomReader in) throws IOException {
        Scanner sc = new Scanner(in);
        int A = sc.nextInt();
        int B = sc.nextInt();

        if (A < 6) {
            System.out.println(0);

        }else if (6<=A && A<=12){
            System.out.println(B / 2);
        }else{
            System.out.println(B);
        }

    }

    static class CustomReader extends BufferedReader {

        public CustomReader() throws IOException {
            super(new InputStreamReader(System.in));
        }

        public int[] readLineAsIntArray() throws IOException {
            String[] strArray = this.readLine().split(" ");
            int[] intArray = new int[strArray.length];
            for (int i = 0, n = strArray.length; i < n; i++) {
                intArray[i] = Integer.parseInt(strArray[i]);
            }
            return intArray;
        }

        public int[][] readAsIntMatrix(int rows, int columns) throws IOException {
            int[][] matrix = new int[rows][columns];
            for (int i = 0; i < rows; i++) {
                String[] r = this.readLine().split(" ");
                for (int j = 0; j < columns; j++) {
                    matrix[i][j] = Integer.parseInt(r[j]);
                }
            }
            return matrix;
        }

    }
} Main public static void main(String[] args) {
        try (CustomReader in = new CustomReader()) {
            new Main().execute(in);
        } catch (IOException e) {
            e.printStackTrace();
        }
    } main {
        try (CustomReader in = new CustomReader()) {
            new Main().execute(in);
        } catch (IOException e) {
            e.printStackTrace();
        }
    } try (CustomReader in = new CustomReader()) {
            new Main().execute(in);
        } catch (IOException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        } IOException e {
            e.printStackTrace();
        } e.printStackTrace() e.printStackTrace e {
            new Main().execute(in);
        } CustomReader in = new CustomReader() CustomReader in = new CustomReader() new CustomReader() new Main().execute(in) new Main().execute new Main() in String[] args args public void execute(CustomReader in) throws IOException {
        Scanner sc = new Scanner(in);
        int A = sc.nextInt();
        int B = sc.nextInt();

        if (A < 6) {
            System.out.println(0);

        }else if (6<=A && A<=12){
            System.out.println(B / 2);
        }else{
            System.out.println(B);
        }

    } execute {
        Scanner sc = new Scanner(in);
        int A = sc.nextInt();
        int B = sc.nextInt();

        if (A < 6) {
            System.out.println(0);

        }else if (6<=A && A<=12){
            System.out.println(B / 2);
        }else{
            System.out.println(B);
        }

    } Scanner sc = new Scanner(in); sc new Scanner(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.println(0);

        }else if (6<=A && A<=12){
            System.out.println(B / 2);
        }else{
            System.out.println(B);
        } A < 6 A 6 {
            System.out.println(0);

        } System.out.println(0) System.out.println System.out System System.out 0 if (6<=A && A<=12){
            System.out.println(B / 2);
        }else{
            System.out.println(B);
        } 6<=A && A<=12 6<=A 6 A A<=12 A 12 {
            System.out.println(B / 2);
        } System.out.println(B / 2) System.out.println System.out System System.out B / 2 B 2 {
            System.out.println(B);
        } System.out.println(B) System.out.println System.out System System.out B CustomReader in in static class CustomReader extends BufferedReader {

        public CustomReader() throws IOException {
            super(new InputStreamReader(System.in));
        }

        public int[] readLineAsIntArray() throws IOException {
            String[] strArray = this.readLine().split(" ");
            int[] intArray = new int[strArray.length];
            for (int i = 0, n = strArray.length; i < n; i++) {
                intArray[i] = Integer.parseInt(strArray[i]);
            }
            return intArray;
        }

        public int[][] readAsIntMatrix(int rows, int columns) throws IOException {
            int[][] matrix = new int[rows][columns];
            for (int i = 0; i < rows; i++) {
                String[] r = this.readLine().split(" ");
                for (int j = 0; j < columns; j++) {
                    matrix[i][j] = Integer.parseInt(r[j]);
                }
            }
            return matrix;
        }

    } CustomReader public CustomReader() throws IOException {
            super(new InputStreamReader(System.in));
        } CustomReader {
            super(new InputStreamReader(System.in));
        } super(new InputStreamReader(System.in)) super new InputStreamReader(System.in) public int[] readLineAsIntArray() throws IOException {
            String[] strArray = this.readLine().split(" ");
            int[] intArray = new int[strArray.length];
            for (int i = 0, n = strArray.length; i < n; i++) {
                intArray[i] = Integer.parseInt(strArray[i]);
            }
            return intArray;
        } readLineAsIntArray {
            String[] strArray = this.readLine().split(" ");
            int[] intArray = new int[strArray.length];
            for (int i = 0, n = strArray.length; i < n; i++) {
                intArray[i] = Integer.parseInt(strArray[i]);
            }
            return intArray;
        } String[] strArray = this.readLine().split(" "); strArray this.readLine().split(" ") this.readLine().split this.readLine() this.readLine this " " int[] intArray = new int[strArray.length]; intArray new int[strArray.length] strArray.length strArray strArray.length for (int i = 0, n = strArray.length; i < n; i++) {
                intArray[i] = Integer.parseInt(strArray[i]);
            } int i = 0, n = strArray.length; int i = 0 i 0 n = strArray.length; n strArray.length strArray strArray.length i < n i n i++ i++ i {
                intArray[i] = Integer.parseInt(strArray[i]);
            } {
                intArray[i] = Integer.parseInt(strArray[i]);
            } intArray[i] = Integer.parseInt(strArray[i]) intArray[i] intArray i Integer.parseInt(strArray[i]) Integer.parseInt Integer strArray[i] strArray i return intArray; intArray public int[][] readAsIntMatrix(int rows, int columns) throws IOException {
            int[][] matrix = new int[rows][columns];
            for (int i = 0; i < rows; i++) {
                String[] r = this.readLine().split(" ");
                for (int j = 0; j < columns; j++) {
                    matrix[i][j] = Integer.parseInt(r[j]);
                }
            }
            return matrix;
        } readAsIntMatrix {
            int[][] matrix = new int[rows][columns];
            for (int i = 0; i < rows; i++) {
                String[] r = this.readLine().split(" ");
                for (int j = 0; j < columns; j++) {
                    matrix[i][j] = Integer.parseInt(r[j]);
                }
            }
            return matrix;
        } int[][] matrix = new int[rows][columns]; matrix new int[rows][columns] rows columns for (int i = 0; i < rows; i++) {
                String[] r = this.readLine().split(" ");
                for (int j = 0; j < columns; j++) {
                    matrix[i][j] = Integer.parseInt(r[j]);
                }
            } int i = 0; int i = 0; i 0 i < rows i rows i++ i++ i {
                String[] r = this.readLine().split(" ");
                for (int j = 0; j < columns; j++) {
                    matrix[i][j] = Integer.parseInt(r[j]);
                }
            } {
                String[] r = this.readLine().split(" ");
                for (int j = 0; j < columns; j++) {
                    matrix[i][j] = Integer.parseInt(r[j]);
                }
            } String[] r = this.readLine().split(" "); r this.readLine().split(" ") this.readLine().split this.readLine() this.readLine this " " for (int j = 0; j < columns; j++) {
                    matrix[i][j] = Integer.parseInt(r[j]);
                } int j = 0; int j = 0; j 0 j < columns j columns j++ j++ j {
                    matrix[i][j] = Integer.parseInt(r[j]);
                } {
                    matrix[i][j] = Integer.parseInt(r[j]);
                } matrix[i][j] = Integer.parseInt(r[j]) matrix[i][j] matrix[i] matrix i j Integer.parseInt(r[j]) Integer.parseInt Integer r[j] r j return matrix; matrix int rows rows int columns columns BufferedReader public class Main {

    public static void main(String[] args) {
        try (CustomReader in = new CustomReader()) {
            new Main().execute(in);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public void execute(CustomReader in) throws IOException {
        Scanner sc = new Scanner(in);
        int A = sc.nextInt();
        int B = sc.nextInt();

        if (A < 6) {
            System.out.println(0);

        }else if (6<=A && A<=12){
            System.out.println(B / 2);
        }else{
            System.out.println(B);
        }

    }

    static class CustomReader extends BufferedReader {

        public CustomReader() throws IOException {
            super(new InputStreamReader(System.in));
        }

        public int[] readLineAsIntArray() throws IOException {
            String[] strArray = this.readLine().split(" ");
            int[] intArray = new int[strArray.length];
            for (int i = 0, n = strArray.length; i < n; i++) {
                intArray[i] = Integer.parseInt(strArray[i]);
            }
            return intArray;
        }

        public int[][] readAsIntMatrix(int rows, int columns) throws IOException {
            int[][] matrix = new int[rows][columns];
            for (int i = 0; i < rows; i++) {
                String[] r = this.readLine().split(" ");
                for (int j = 0; j < columns; j++) {
                    matrix[i][j] = Integer.parseInt(r[j]);
                }
            }
            return matrix;
        }

    }
} public class Main {

    public static void main(String[] args) {
        try (CustomReader in = new CustomReader()) {
            new Main().execute(in);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public void execute(CustomReader in) throws IOException {
        Scanner sc = new Scanner(in);
        int A = sc.nextInt();
        int B = sc.nextInt();

        if (A < 6) {
            System.out.println(0);

        }else if (6<=A && A<=12){
            System.out.println(B / 2);
        }else{
            System.out.println(B);
        }

    }

    static class CustomReader extends BufferedReader {

        public CustomReader() throws IOException {
            super(new InputStreamReader(System.in));
        }

        public int[] readLineAsIntArray() throws IOException {
            String[] strArray = this.readLine().split(" ");
            int[] intArray = new int[strArray.length];
            for (int i = 0, n = strArray.length; i < n; i++) {
                intArray[i] = Integer.parseInt(strArray[i]);
            }
            return intArray;
        }

        public int[][] readAsIntMatrix(int rows, int columns) throws IOException {
            int[][] matrix = new int[rows][columns];
            for (int i = 0; i < rows; i++) {
                String[] r = this.readLine().split(" ");
                for (int j = 0; j < columns; j++) {
                    matrix[i][j] = Integer.parseInt(r[j]);
                }
            }
            return matrix;
        }

    }
} Main
import java.io.*;
import java.util.*;

public class Main {

    public static void main(String[] args) {
        try (CustomReader in = new CustomReader()) {
            new Main().execute(in);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public void execute(CustomReader in) throws IOException {
        Scanner sc = new Scanner(in);
        int A = sc.nextInt();
        int B = sc.nextInt();

        if (A < 6) {
            System.out.println(0);

        }else if (6<=A && A<=12){
            System.out.println(B / 2);
        }else{
            System.out.println(B);
        }

    }

    static class CustomReader extends BufferedReader {

        public CustomReader() throws IOException {
            super(new InputStreamReader(System.in));
        }

        public int[] readLineAsIntArray() throws IOException {
            String[] strArray = this.readLine().split(" ");
            int[] intArray = new int[strArray.length];
            for (int i = 0, n = strArray.length; i < n; i++) {
                intArray[i] = Integer.parseInt(strArray[i]);
            }
            return intArray;
        }

        public int[][] readAsIntMatrix(int rows, int columns) throws IOException {
            int[][] matrix = new int[rows][columns];
            for (int i = 0; i < rows; i++) {
                String[] r = this.readLine().split(" ");
                for (int j = 0; j < columns; j++) {
                    matrix[i][j] = Integer.parseInt(r[j]);
                }
            }
            return matrix;
        }

    }
}