import java.util.Scanner;

public class Main {

    public static void main(String args[]) {

        // 入力
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());

        // 主処理
        int result = 0;
        if (13 <= a) {
            result = b;
        } else if (6 <= a) {
            result = b / 2;
        }

        // 出力
        System.out.println(result);
        sc.close();
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String args[]) {

        // 入力
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());

        // 主処理
        int result = 0;
        if (13 <= a) {
            result = b;
        } else if (6 <= a) {
            result = b / 2;
        }

        // 出力
        System.out.println(result);
        sc.close();
    }
} Main public static void main(String args[]) {

        // 入力
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());

        // 主処理
        int result = 0;
        if (13 <= a) {
            result = b;
        } else if (6 <= a) {
            result = b / 2;
        }

        // 出力
        System.out.println(result);
        sc.close();
    } main {

        // 入力
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());

        // 主処理
        int result = 0;
        if (13 <= a) {
            result = b;
        } else if (6 <= a) {
            result = b / 2;
        }

        // 出力
        System.out.println(result);
        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = Integer.parseInt(sc.next()); a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int b = Integer.parseInt(sc.next()); b Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int result = 0; result 0 if (13 <= a) {
            result = b;
        } else if (6 <= a) {
            result = b / 2;
        } 13 <= a 13 a {
            result = b;
        } result = b result b if (6 <= a) {
            result = b / 2;
        } 6 <= a 6 a {
            result = b / 2;
        } result = b / 2 result b / 2 b 2 System.out.println(result) System.out.println System.out System System.out result sc.close() sc.close sc String args[] args public class Main {

    public static void main(String args[]) {

        // 入力
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());

        // 主処理
        int result = 0;
        if (13 <= a) {
            result = b;
        } else if (6 <= a) {
            result = b / 2;
        }

        // 出力
        System.out.println(result);
        sc.close();
    }
} public class Main {

    public static void main(String args[]) {

        // 入力
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());

        // 主処理
        int result = 0;
        if (13 <= a) {
            result = b;
        } else if (6 <= a) {
            result = b / 2;
        }

        // 出力
        System.out.println(result);
        sc.close();
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String args[]) {

        // 入力
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());

        // 主処理
        int result = 0;
        if (13 <= a) {
            result = b;
        } else if (6 <= a) {
            result = b / 2;
        }

        // 出力
        System.out.println(result);
        sc.close();
    }
}