
import java.util.Scanner;

 class Main {
    public static void main(String[] args) {
        Scanner in= new Scanner(System.in);
        int A= in.nextInt();
        int B= in.nextInt();

        if(A>=13)
            System.out.println(B);
        else
            if(A>=6 && A<=12){
            B=B>>1;
                System.out.println(B);
            }
            else{
                System.out.println(0);
            }

    }
} import java.util.Scanner; Scanner java.util class Main {
    public static void main(String[] args) {
        Scanner in= new Scanner(System.in);
        int A= in.nextInt();
        int B= in.nextInt();

        if(A>=13)
            System.out.println(B);
        else
            if(A>=6 && A<=12){
            B=B>>1;
                System.out.println(B);
            }
            else{
                System.out.println(0);
            }

    }
} Main public static void main(String[] args) {
        Scanner in= new Scanner(System.in);
        int A= in.nextInt();
        int B= in.nextInt();

        if(A>=13)
            System.out.println(B);
        else
            if(A>=6 && A<=12){
            B=B>>1;
                System.out.println(B);
            }
            else{
                System.out.println(0);
            }

    } main {
        Scanner in= new Scanner(System.in);
        int A= in.nextInt();
        int B= in.nextInt();

        if(A>=13)
            System.out.println(B);
        else
            if(A>=6 && A<=12){
            B=B>>1;
                System.out.println(B);
            }
            else{
                System.out.println(0);
            }

    } Scanner in= new Scanner(System.in); in new Scanner(System.in) int A= in.nextInt(); A in.nextInt() in.nextInt in int B= in.nextInt(); B in.nextInt() in.nextInt in if(A>=13)
            System.out.println(B);
        else
            if(A>=6 && A<=12){
            B=B>>1;
                System.out.println(B);
            }
            else{
                System.out.println(0);
            } A>=13 A 13 System.out.println(B) System.out.println System.out System System.out B if(A>=6 && A<=12){
            B=B>>1;
                System.out.println(B);
            }
            else{
                System.out.println(0);
            } A>=6 && A<=12 A>=6 A 6 A<=12 A 12 {
            B=B>>1;
                System.out.println(B);
            } B=B>>1 B B>>1 B 1 System.out.println(B) System.out.println System.out System System.out B {
                System.out.println(0);
            } System.out.println(0) System.out.println System.out System System.out 0 String[] args args

import java.util.Scanner;

 class Main {
    public static void main(String[] args) {
        Scanner in= new Scanner(System.in);
        int A= in.nextInt();
        int B= in.nextInt();

        if(A>=13)
            System.out.println(B);
        else
            if(A>=6 && A<=12){
            B=B>>1;
                System.out.println(B);
            }
            else{
                System.out.println(0);
            }

    }
}
