
import java.util.Scanner;

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

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

        show(calc(A, B));
    }

    private static int calc(int A, int B) {
        return (A >= 13) ? B : (12 >= A && A >= 6) ? B/2 : 0;
    }

    private static int nextInt(Scanner sc) {
        return Integer.parseInt(sc.next());
    }
    private static void show(Object answer) {
        System.out.println(answer);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

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

        show(calc(A, B));
    }

    private static int calc(int A, int B) {
        return (A >= 13) ? B : (12 >= A && A >= 6) ? B/2 : 0;
    }

    private static int nextInt(Scanner sc) {
        return Integer.parseInt(sc.next());
    }
    private static void show(Object answer) {
        System.out.println(answer);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

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

        show(calc(A, B));
    } main {
        Scanner sc = new Scanner(System.in);

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

        show(calc(A, B));
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int A = nextInt(sc); A nextInt(sc) nextInt sc int B = nextInt(sc); B nextInt(sc) nextInt sc show(calc(A, B)) show calc(A, B) calc A B String[] args args private static int calc(int A, int B) {
        return (A >= 13) ? B : (12 >= A && A >= 6) ? B/2 : 0;
    } calc {
        return (A >= 13) ? B : (12 >= A && A >= 6) ? B/2 : 0;
    } return (A >= 13) ? B : (12 >= A && A >= 6) ? B/2 : 0; (A >= 13) ? B : (12 >= A && A >= 6) ? B/2 : 0 (A >= 13) A 13 B (12 >= A && A >= 6) ? B/2 : 0 (12 >= A && A >= 6) 12 >= A 12 A A >= 6 A 6 B/2 B 2 0 int A A int B B private static int nextInt(Scanner sc) {
        return Integer.parseInt(sc.next());
    } nextInt {
        return Integer.parseInt(sc.next());
    } return Integer.parseInt(sc.next()); Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc Scanner sc sc private static void show(Object answer) {
        System.out.println(answer);
    } show {
        System.out.println(answer);
    } System.out.println(answer) System.out.println System.out System System.out answer Object answer answer public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

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

        show(calc(A, B));
    }

    private static int calc(int A, int B) {
        return (A >= 13) ? B : (12 >= A && A >= 6) ? B/2 : 0;
    }

    private static int nextInt(Scanner sc) {
        return Integer.parseInt(sc.next());
    }
    private static void show(Object answer) {
        System.out.println(answer);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

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

        show(calc(A, B));
    }

    private static int calc(int A, int B) {
        return (A >= 13) ? B : (12 >= A && A >= 6) ? B/2 : 0;
    }

    private static int nextInt(Scanner sc) {
        return Integer.parseInt(sc.next());
    }
    private static void show(Object answer) {
        System.out.println(answer);
    }
} Main

import java.util.Scanner;

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

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

        show(calc(A, B));
    }

    private static int calc(int A, int B) {
        return (A >= 13) ? B : (12 >= A && A >= 6) ? B/2 : 0;
    }

    private static int nextInt(Scanner sc) {
        return Integer.parseInt(sc.next());
    }
    private static void show(Object answer) {
        System.out.println(answer);
    }
}