import java.util.Scanner;

public class Main {

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

        final int A = sc.nextInt();
        final int B = sc.nextInt();

        System.out.println(A >= 13 ? B : A >= 6 ? B/2 : 0);
    }
} import java.util.Scanner; Scanner java.util public class Main {

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

        final int A = sc.nextInt();
        final int B = sc.nextInt();

        System.out.println(A >= 13 ? B : A >= 6 ? B/2 : 0);
    }
} Main public static void main(String[] args) {
        final Scanner sc = new Scanner(System.in);

        final int A = sc.nextInt();
        final int B = sc.nextInt();

        System.out.println(A >= 13 ? B : A >= 6 ? B/2 : 0);
    } main {
        final Scanner sc = new Scanner(System.in);

        final int A = sc.nextInt();
        final int B = sc.nextInt();

        System.out.println(A >= 13 ? B : A >= 6 ? B/2 : 0);
    } final Scanner sc = new Scanner(System.in); sc new Scanner(System.in) final int A = sc.nextInt(); A sc.nextInt() sc.nextInt sc final int B = sc.nextInt(); B sc.nextInt() sc.nextInt sc System.out.println(A >= 13 ? B : A >= 6 ? B/2 : 0) System.out.println System.out System System.out A >= 13 ? B : A >= 6 ? B/2 : 0 A >= 13 A 13 B A >= 6 ? B/2 : 0 A >= 6 A 6 B/2 B 2 0 String[] args args public class Main {

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

        final int A = sc.nextInt();
        final int B = sc.nextInt();

        System.out.println(A >= 13 ? B : A >= 6 ? B/2 : 0);
    }
} public class Main {

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

        final int A = sc.nextInt();
        final int B = sc.nextInt();

        System.out.println(A >= 13 ? B : A >= 6 ? B/2 : 0);
    }
} Main
import java.util.Scanner;

public class Main {

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

        final int A = sc.nextInt();
        final int B = sc.nextInt();

        System.out.println(A >= 13 ? B : A >= 6 ? B/2 : 0);
    }
}
