import java.io.PrintWriter;
import java.util.Scanner;

public class Main {
    static private Scanner scan = new Scanner(System.in);
    public static void main(String args[]) {
        int int1 = Integer.parseInt(scan.next());
        int int2 = Integer.parseInt(scan.next());

//        String str1 = scan.next();
//        int int3 = Integer.parseInt(scan.next());
//        String str1 = scan.next();

        int ans_int = 0;
        double ans_dob = 0;
        String ans = "";

        if(int1 >= 6){
            if(int1 <= 12){
                ans_int = int2/2;
            }else{
                ans_int = int2;
            }
            //        StringBuilder sb = new StringBuilder(str1);
        }else{
            ans_int = 0;
        }

//        sb.replace(0,4,"2018");
        PrintWriter out = new PrintWriter(System.out);
        out.println(ans_int);
        out.flush();
        scan.close();
    }
} import java.io.PrintWriter; PrintWriter java.io import java.util.Scanner; Scanner java.util public class Main {
    static private Scanner scan = new Scanner(System.in);
    public static void main(String args[]) {
        int int1 = Integer.parseInt(scan.next());
        int int2 = Integer.parseInt(scan.next());

//        String str1 = scan.next();
//        int int3 = Integer.parseInt(scan.next());
//        String str1 = scan.next();

        int ans_int = 0;
        double ans_dob = 0;
        String ans = "";

        if(int1 >= 6){
            if(int1 <= 12){
                ans_int = int2/2;
            }else{
                ans_int = int2;
            }
            //        StringBuilder sb = new StringBuilder(str1);
        }else{
            ans_int = 0;
        }

//        sb.replace(0,4,"2018");
        PrintWriter out = new PrintWriter(System.out);
        out.println(ans_int);
        out.flush();
        scan.close();
    }
} Main static private Scanner scan = new Scanner(System.in); scan new Scanner(System.in) public static void main(String args[]) {
        int int1 = Integer.parseInt(scan.next());
        int int2 = Integer.parseInt(scan.next());

//        String str1 = scan.next();
//        int int3 = Integer.parseInt(scan.next());
//        String str1 = scan.next();

        int ans_int = 0;
        double ans_dob = 0;
        String ans = "";

        if(int1 >= 6){
            if(int1 <= 12){
                ans_int = int2/2;
            }else{
                ans_int = int2;
            }
            //        StringBuilder sb = new StringBuilder(str1);
        }else{
            ans_int = 0;
        }

//        sb.replace(0,4,"2018");
        PrintWriter out = new PrintWriter(System.out);
        out.println(ans_int);
        out.flush();
        scan.close();
    } main {
        int int1 = Integer.parseInt(scan.next());
        int int2 = Integer.parseInt(scan.next());

//        String str1 = scan.next();
//        int int3 = Integer.parseInt(scan.next());
//        String str1 = scan.next();

        int ans_int = 0;
        double ans_dob = 0;
        String ans = "";

        if(int1 >= 6){
            if(int1 <= 12){
                ans_int = int2/2;
            }else{
                ans_int = int2;
            }
            //        StringBuilder sb = new StringBuilder(str1);
        }else{
            ans_int = 0;
        }

//        sb.replace(0,4,"2018");
        PrintWriter out = new PrintWriter(System.out);
        out.println(ans_int);
        out.flush();
        scan.close();
    } int int1 = Integer.parseInt(scan.next()); int1 Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int int2 = Integer.parseInt(scan.next()); int2 Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int ans_int = 0; ans_int 0 double ans_dob = 0; ans_dob 0 String ans = ""; ans "" if(int1 >= 6){
            if(int1 <= 12){
                ans_int = int2/2;
            }else{
                ans_int = int2;
            }
            //        StringBuilder sb = new StringBuilder(str1);
        }else{
            ans_int = 0;
        } int1 >= 6 int1 6 {
            if(int1 <= 12){
                ans_int = int2/2;
            }else{
                ans_int = int2;
            }
            //        StringBuilder sb = new StringBuilder(str1);
        } if(int1 <= 12){
                ans_int = int2/2;
            }else{
                ans_int = int2;
            } int1 <= 12 int1 12 {
                ans_int = int2/2;
            } ans_int = int2/2 ans_int int2/2 int2 2 {
                ans_int = int2;
            } ans_int = int2 ans_int int2 {
            ans_int = 0;
        } ans_int = 0 ans_int 0 PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) out.println(ans_int) out.println out ans_int out.flush() out.flush out scan.close() scan.close scan String args[] args public class Main {
    static private Scanner scan = new Scanner(System.in);
    public static void main(String args[]) {
        int int1 = Integer.parseInt(scan.next());
        int int2 = Integer.parseInt(scan.next());

//        String str1 = scan.next();
//        int int3 = Integer.parseInt(scan.next());
//        String str1 = scan.next();

        int ans_int = 0;
        double ans_dob = 0;
        String ans = "";

        if(int1 >= 6){
            if(int1 <= 12){
                ans_int = int2/2;
            }else{
                ans_int = int2;
            }
            //        StringBuilder sb = new StringBuilder(str1);
        }else{
            ans_int = 0;
        }

//        sb.replace(0,4,"2018");
        PrintWriter out = new PrintWriter(System.out);
        out.println(ans_int);
        out.flush();
        scan.close();
    }
} public class Main {
    static private Scanner scan = new Scanner(System.in);
    public static void main(String args[]) {
        int int1 = Integer.parseInt(scan.next());
        int int2 = Integer.parseInt(scan.next());

//        String str1 = scan.next();
//        int int3 = Integer.parseInt(scan.next());
//        String str1 = scan.next();

        int ans_int = 0;
        double ans_dob = 0;
        String ans = "";

        if(int1 >= 6){
            if(int1 <= 12){
                ans_int = int2/2;
            }else{
                ans_int = int2;
            }
            //        StringBuilder sb = new StringBuilder(str1);
        }else{
            ans_int = 0;
        }

//        sb.replace(0,4,"2018");
        PrintWriter out = new PrintWriter(System.out);
        out.println(ans_int);
        out.flush();
        scan.close();
    }
} Main
import java.io.PrintWriter;
import java.util.Scanner;

public class Main {
    static private Scanner scan = new Scanner(System.in);
    public static void main(String args[]) {
        int int1 = Integer.parseInt(scan.next());
        int int2 = Integer.parseInt(scan.next());

//        String str1 = scan.next();
//        int int3 = Integer.parseInt(scan.next());
//        String str1 = scan.next();

        int ans_int = 0;
        double ans_dob = 0;
        String ans = "";

        if(int1 >= 6){
            if(int1 <= 12){
                ans_int = int2/2;
            }else{
                ans_int = int2;
            }
            //        StringBuilder sb = new StringBuilder(str1);
        }else{
            ans_int = 0;
        }

//        sb.replace(0,4,"2018");
        PrintWriter out = new PrintWriter(System.out);
        out.println(ans_int);
        out.flush();
        scan.close();
    }
}
