import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int A = Integer.parseInt(scanner.next());
        int B = Integer.parseInt(scanner.next());
        scanner.close();

        int price = 0;
        if (A >= 13) {
            price = B;
        } else if (A >= 6) {
            price = B /2;
        }

        System.out.println(price);
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int A = Integer.parseInt(scanner.next());
        int B = Integer.parseInt(scanner.next());
        scanner.close();

        int price = 0;
        if (A >= 13) {
            price = B;
        } else if (A >= 6) {
            price = B /2;
        }

        System.out.println(price);
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int A = Integer.parseInt(scanner.next());
        int B = Integer.parseInt(scanner.next());
        scanner.close();

        int price = 0;
        if (A >= 13) {
            price = B;
        } else if (A >= 6) {
            price = B /2;
        }

        System.out.println(price);
    } main {
        Scanner scanner = new Scanner(System.in);
        int A = Integer.parseInt(scanner.next());
        int B = Integer.parseInt(scanner.next());
        scanner.close();

        int price = 0;
        if (A >= 13) {
            price = B;
        } else if (A >= 6) {
            price = B /2;
        }

        System.out.println(price);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int A = Integer.parseInt(scanner.next()); A Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner int B = Integer.parseInt(scanner.next()); B Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner scanner.close() scanner.close scanner int price = 0; price 0 if (A >= 13) {
            price = B;
        } else if (A >= 6) {
            price = B /2;
        } A >= 13 A 13 {
            price = B;
        } price = B price B if (A >= 6) {
            price = B /2;
        } A >= 6 A 6 {
            price = B /2;
        } price = B /2 price B /2 B 2 System.out.println(price) System.out.println System.out System System.out price String[] args args public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int A = Integer.parseInt(scanner.next());
        int B = Integer.parseInt(scanner.next());
        scanner.close();

        int price = 0;
        if (A >= 13) {
            price = B;
        } else if (A >= 6) {
            price = B /2;
        }

        System.out.println(price);
    }
} public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int A = Integer.parseInt(scanner.next());
        int B = Integer.parseInt(scanner.next());
        scanner.close();

        int price = 0;
        if (A >= 13) {
            price = B;
        } else if (A >= 6) {
            price = B /2;
        }

        System.out.println(price);
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int A = Integer.parseInt(scanner.next());
        int B = Integer.parseInt(scanner.next());
        scanner.close();

        int price = 0;
        if (A >= 13) {
            price = B;
        } else if (A >= 6) {
            price = B /2;
        }

        System.out.println(price);
    }
}
