import java.util.Scanner;

public final class Main {
    public static void main(String[] args){
        Scanner stdIn = new Scanner(System.in);

        int a = stdIn.nextInt();
        int b = stdIn.nextInt();

        if(0<=a && a<=5){
            System.out.println(0);
        }else if(13<=a){
            System.out.println(b);
        }else{
            System.out.println(b/2);
        }
    }
} import java.util.Scanner; Scanner java.util public final class Main {
    public static void main(String[] args){
        Scanner stdIn = new Scanner(System.in);

        int a = stdIn.nextInt();
        int b = stdIn.nextInt();

        if(0<=a && a<=5){
            System.out.println(0);
        }else if(13<=a){
            System.out.println(b);
        }else{
            System.out.println(b/2);
        }
    }
} Main public static void main(String[] args){
        Scanner stdIn = new Scanner(System.in);

        int a = stdIn.nextInt();
        int b = stdIn.nextInt();

        if(0<=a && a<=5){
            System.out.println(0);
        }else if(13<=a){
            System.out.println(b);
        }else{
            System.out.println(b/2);
        }
    } main {
        Scanner stdIn = new Scanner(System.in);

        int a = stdIn.nextInt();
        int b = stdIn.nextInt();

        if(0<=a && a<=5){
            System.out.println(0);
        }else if(13<=a){
            System.out.println(b);
        }else{
            System.out.println(b/2);
        }
    } Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int a = stdIn.nextInt(); a stdIn.nextInt() stdIn.nextInt stdIn int b = stdIn.nextInt(); b stdIn.nextInt() stdIn.nextInt stdIn if(0<=a && a<=5){
            System.out.println(0);
        }else if(13<=a){
            System.out.println(b);
        }else{
            System.out.println(b/2);
        } 0<=a && a<=5 0<=a 0 a a<=5 a 5 {
            System.out.println(0);
        } System.out.println(0) System.out.println System.out System System.out 0 if(13<=a){
            System.out.println(b);
        }else{
            System.out.println(b/2);
        } 13<=a 13 a {
            System.out.println(b);
        } System.out.println(b) System.out.println System.out System System.out b {
            System.out.println(b/2);
        } System.out.println(b/2) System.out.println System.out System System.out b/2 b 2 String[] args args public final class Main {
    public static void main(String[] args){
        Scanner stdIn = new Scanner(System.in);

        int a = stdIn.nextInt();
        int b = stdIn.nextInt();

        if(0<=a && a<=5){
            System.out.println(0);
        }else if(13<=a){
            System.out.println(b);
        }else{
            System.out.println(b/2);
        }
    }
} public final class Main {
    public static void main(String[] args){
        Scanner stdIn = new Scanner(System.in);

        int a = stdIn.nextInt();
        int b = stdIn.nextInt();

        if(0<=a && a<=5){
            System.out.println(0);
        }else if(13<=a){
            System.out.println(b);
        }else{
            System.out.println(b/2);
        }
    }
} Main
import java.util.Scanner;

public final class Main {
    public static void main(String[] args){
        Scanner stdIn = new Scanner(System.in);

        int a = stdIn.nextInt();
        int b = stdIn.nextInt();

        if(0<=a && a<=5){
            System.out.println(0);
        }else if(13<=a){
            System.out.println(b);
        }else{
            System.out.println(b/2);
        }
    }
}