import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] ab = br.readLine().split(" ");
        int a = Integer.parseInt(ab[0]);
        int b = Integer.parseInt(ab[1]);
        System.out.println(problem127a(a, b));
    }

    private static int problem127a(int a, int b) {
        if (a >= 13) {
            return b;
        } else if (a <= 5) {
            return 0;
        }
        return (b / 2);
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] ab = br.readLine().split(" ");
        int a = Integer.parseInt(ab[0]);
        int b = Integer.parseInt(ab[1]);
        System.out.println(problem127a(a, b));
    }

    private static int problem127a(int a, int b) {
        if (a >= 13) {
            return b;
        } else if (a <= 5) {
            return 0;
        }
        return (b / 2);
    }
} Main public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] ab = br.readLine().split(" ");
        int a = Integer.parseInt(ab[0]);
        int b = Integer.parseInt(ab[1]);
        System.out.println(problem127a(a, b));
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] ab = br.readLine().split(" ");
        int a = Integer.parseInt(ab[0]);
        int b = Integer.parseInt(ab[1]);
        System.out.println(problem127a(a, b));
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] ab = br.readLine().split(" "); ab br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int a = Integer.parseInt(ab[0]); a Integer.parseInt(ab[0]) Integer.parseInt Integer ab[0] ab 0 int b = Integer.parseInt(ab[1]); b Integer.parseInt(ab[1]) Integer.parseInt Integer ab[1] ab 1 System.out.println(problem127a(a, b)) System.out.println System.out System System.out problem127a(a, b) problem127a a b String[] args args private static int problem127a(int a, int b) {
        if (a >= 13) {
            return b;
        } else if (a <= 5) {
            return 0;
        }
        return (b / 2);
    } problem127a {
        if (a >= 13) {
            return b;
        } else if (a <= 5) {
            return 0;
        }
        return (b / 2);
    } if (a >= 13) {
            return b;
        } else if (a <= 5) {
            return 0;
        } a >= 13 a 13 {
            return b;
        } return b; b if (a <= 5) {
            return 0;
        } a <= 5 a 5 {
            return 0;
        } return 0; 0 return (b / 2); (b / 2) b 2 int a a int b b public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] ab = br.readLine().split(" ");
        int a = Integer.parseInt(ab[0]);
        int b = Integer.parseInt(ab[1]);
        System.out.println(problem127a(a, b));
    }

    private static int problem127a(int a, int b) {
        if (a >= 13) {
            return b;
        } else if (a <= 5) {
            return 0;
        }
        return (b / 2);
    }
} public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] ab = br.readLine().split(" ");
        int a = Integer.parseInt(ab[0]);
        int b = Integer.parseInt(ab[1]);
        System.out.println(problem127a(a, b));
    }

    private static int problem127a(int a, int b) {
        if (a >= 13) {
            return b;
        } else if (a <= 5) {
            return 0;
        }
        return (b / 2);
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] ab = br.readLine().split(" ");
        int a = Integer.parseInt(ab[0]);
        int b = Integer.parseInt(ab[1]);
        System.out.println(problem127a(a, b));
    }

    private static int problem127a(int a, int b) {
        if (a >= 13) {
            return b;
        } else if (a <= 5) {
            return 0;
        }
        return (b / 2);
    }
}