import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.Scanner;
import java.util.StringTokenizer;

public class Main {
    public static void main(String[] args)
    {
        Scanner r=new Scanner(System.in);
        int A=r.nextInt();
        int B=r.nextInt();
        if(A>=13)
        {
            System.out.println(B);
        }else if(A>=6 && A<=12)
        {
            System.out.println(B/2);
        }
        else
        {
            System.out.println(0);
        }
    }
    public static class Reader {
        BufferedReader br;
        StringTokenizer st;

        public Reader(File s) throws IOException
        {
            br = new BufferedReader(new FileReader(s));
        }


        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

        String nextLine(){
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }

    }
    //--------------------------------------------------------
}
 import java.io.BufferedReader; BufferedReader java.io import java.io.File; File java.io import java.io.FileReader; FileReader java.io import java.io.IOException; IOException java.io import java.util.Scanner; Scanner java.util import java.util.StringTokenizer; StringTokenizer java.util public class Main {
    public static void main(String[] args)
    {
        Scanner r=new Scanner(System.in);
        int A=r.nextInt();
        int B=r.nextInt();
        if(A>=13)
        {
            System.out.println(B);
        }else if(A>=6 && A<=12)
        {
            System.out.println(B/2);
        }
        else
        {
            System.out.println(0);
        }
    }
    public static class Reader {
        BufferedReader br;
        StringTokenizer st;

        public Reader(File s) throws IOException
        {
            br = new BufferedReader(new FileReader(s));
        }


        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

        String nextLine(){
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }

    }
    //--------------------------------------------------------
} Main public static void main(String[] args)
    {
        Scanner r=new Scanner(System.in);
        int A=r.nextInt();
        int B=r.nextInt();
        if(A>=13)
        {
            System.out.println(B);
        }else if(A>=6 && A<=12)
        {
            System.out.println(B/2);
        }
        else
        {
            System.out.println(0);
        }
    } main {
        Scanner r=new Scanner(System.in);
        int A=r.nextInt();
        int B=r.nextInt();
        if(A>=13)
        {
            System.out.println(B);
        }else if(A>=6 && A<=12)
        {
            System.out.println(B/2);
        }
        else
        {
            System.out.println(0);
        }
    } Scanner r=new Scanner(System.in); r new Scanner(System.in) int A=r.nextInt(); A r.nextInt() r.nextInt r int B=r.nextInt(); B r.nextInt() r.nextInt r if(A>=13)
        {
            System.out.println(B);
        }else if(A>=6 && A<=12)
        {
            System.out.println(B/2);
        }
        else
        {
            System.out.println(0);
        } A>=13 A 13 {
            System.out.println(B);
        } System.out.println(B) System.out.println System.out System System.out B if(A>=6 && A<=12)
        {
            System.out.println(B/2);
        }
        else
        {
            System.out.println(0);
        } A>=6 && A<=12 A>=6 A 6 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(0);
        } System.out.println(0) System.out.println System.out System System.out 0 String[] args args public static class Reader {
        BufferedReader br;
        StringTokenizer st;

        public Reader(File s) throws IOException
        {
            br = new BufferedReader(new FileReader(s));
        }


        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

        String nextLine(){
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }

    } Reader BufferedReader br; br StringTokenizer st; st public Reader(File s) throws IOException
        {
            br = new BufferedReader(new FileReader(s));
        } Reader {
            br = new BufferedReader(new FileReader(s));
        } br = new BufferedReader(new FileReader(s)) br new BufferedReader(new FileReader(s)) File s s String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        } next {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        } while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            } st == null || !st.hasMoreElements() st == null st null !st.hasMoreElements() st.hasMoreElements() st.hasMoreElements st {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            } try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                } catch (IOException e) {
                    e.printStackTrace();
                } IOException e {
                    e.printStackTrace();
                } e.printStackTrace() e.printStackTrace e {
                    st = new StringTokenizer(br.readLine());
                } st = new StringTokenizer(br.readLine()) st new StringTokenizer(br.readLine()) return st.nextToken(); st.nextToken() st.nextToken st int nextInt() {
            return Integer.parseInt(next());
        } nextInt {
            return Integer.parseInt(next());
        } return Integer.parseInt(next()); Integer.parseInt(next()) Integer.parseInt Integer next() next long nextLong() {
            return Long.parseLong(next());
        } nextLong {
            return Long.parseLong(next());
        } return Long.parseLong(next()); Long.parseLong(next()) Long.parseLong Long next() next double nextDouble() {
            return Double.parseDouble(next());
        } nextDouble {
            return Double.parseDouble(next());
        } return Double.parseDouble(next()); Double.parseDouble(next()) Double.parseDouble Double next() next String nextLine(){
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        } nextLine {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        } String str = ""; str "" try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
            } IOException e {
                e.printStackTrace();
            } e.printStackTrace() e.printStackTrace e {
                str = br.readLine();
            } str = br.readLine() str br.readLine() br.readLine br return str; str public class Main {
    public static void main(String[] args)
    {
        Scanner r=new Scanner(System.in);
        int A=r.nextInt();
        int B=r.nextInt();
        if(A>=13)
        {
            System.out.println(B);
        }else if(A>=6 && A<=12)
        {
            System.out.println(B/2);
        }
        else
        {
            System.out.println(0);
        }
    }
    public static class Reader {
        BufferedReader br;
        StringTokenizer st;

        public Reader(File s) throws IOException
        {
            br = new BufferedReader(new FileReader(s));
        }


        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

        String nextLine(){
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }

    }
    //--------------------------------------------------------
} public class Main {
    public static void main(String[] args)
    {
        Scanner r=new Scanner(System.in);
        int A=r.nextInt();
        int B=r.nextInt();
        if(A>=13)
        {
            System.out.println(B);
        }else if(A>=6 && A<=12)
        {
            System.out.println(B/2);
        }
        else
        {
            System.out.println(0);
        }
    }
    public static class Reader {
        BufferedReader br;
        StringTokenizer st;

        public Reader(File s) throws IOException
        {
            br = new BufferedReader(new FileReader(s));
        }


        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

        String nextLine(){
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }

    }
    //--------------------------------------------------------
} Main
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.Scanner;
import java.util.StringTokenizer;

public class Main {
    public static void main(String[] args)
    {
        Scanner r=new Scanner(System.in);
        int A=r.nextInt();
        int B=r.nextInt();
        if(A>=13)
        {
            System.out.println(B);
        }else if(A>=6 && A<=12)
        {
            System.out.println(B/2);
        }
        else
        {
            System.out.println(0);
        }
    }
    public static class Reader {
        BufferedReader br;
        StringTokenizer st;

        public Reader(File s) throws IOException
        {
            br = new BufferedReader(new FileReader(s));
        }


        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

        String nextLine(){
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }

    }
    //--------------------------------------------------------
}

