import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();

        System.out.println(price(A, B));
    }

    private static int price(int age, int price) {
        if (age <= 5) return 0;
        if (6 <= age && age <= 12) return price / 2;
        return price;
    }
} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();

        System.out.println(price(A, B));
    }

    private static int price(int age, int price) {
        if (age <= 5) return 0;
        if (6 <= age && age <= 12) return price / 2;
        return price;
    }
} Main public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();

        System.out.println(price(A, B));
    } main {

        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();

        System.out.println(price(A, B));
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int A = sc.nextInt(); A sc.nextInt() sc.nextInt sc int B = sc.nextInt(); B sc.nextInt() sc.nextInt sc System.out.println(price(A, B)) System.out.println System.out System System.out price(A, B) price A B String[] args args private static int price(int age, int price) {
        if (age <= 5) return 0;
        if (6 <= age && age <= 12) return price / 2;
        return price;
    } price {
        if (age <= 5) return 0;
        if (6 <= age && age <= 12) return price / 2;
        return price;
    } if (age <= 5) return 0; age <= 5 age 5 return 0; 0 if (6 <= age && age <= 12) return price / 2; 6 <= age && age <= 12 6 <= age 6 age age <= 12 age 12 return price / 2; price / 2 price 2 return price; price int age age int price price public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();

        System.out.println(price(A, B));
    }

    private static int price(int age, int price) {
        if (age <= 5) return 0;
        if (6 <= age && age <= 12) return price / 2;
        return price;
    }
} public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();

        System.out.println(price(A, B));
    }

    private static int price(int age, int price) {
        if (age <= 5) return 0;
        if (6 <= age && age <= 12) return price / 2;
        return price;
    }
} Main
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();

        System.out.println(price(A, B));
    }

    private static int price(int age, int price) {
        if (age <= 5) return 0;
        if (6 <= age && age <= 12) return price / 2;
        return price;
    }
}
