import java.util.Scanner;
import java.util.Arrays;

public class Main{

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

        // input
        int age = scan.nextInt();
        int price = scan.nextInt();

        // answer
        if(age >= 13){
            System.out.println(price);
        } else if (age >= 6){
            System.out.println(price / 2);
        } else {
            System.out.println(0);
        }

    }
} import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util public class Main{

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

        // input
        int age = scan.nextInt();
        int price = scan.nextInt();

        // answer
        if(age >= 13){
            System.out.println(price);
        } else if (age >= 6){
            System.out.println(price / 2);
        } else {
            System.out.println(0);
        }

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

        // input
        int age = scan.nextInt();
        int price = scan.nextInt();

        // answer
        if(age >= 13){
            System.out.println(price);
        } else if (age >= 6){
            System.out.println(price / 2);
        } else {
            System.out.println(0);
        }

    } main {
        Scanner scan = new Scanner(System.in);

        // input
        int age = scan.nextInt();
        int price = scan.nextInt();

        // answer
        if(age >= 13){
            System.out.println(price);
        } else if (age >= 6){
            System.out.println(price / 2);
        } else {
            System.out.println(0);
        }

    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int age = scan.nextInt(); age scan.nextInt() scan.nextInt scan int price = scan.nextInt(); price scan.nextInt() scan.nextInt scan if(age >= 13){
            System.out.println(price);
        } else if (age >= 6){
            System.out.println(price / 2);
        } else {
            System.out.println(0);
        } age >= 13 age 13 {
            System.out.println(price);
        } System.out.println(price) System.out.println System.out System System.out price if (age >= 6){
            System.out.println(price / 2);
        } else {
            System.out.println(0);
        } age >= 6 age 6 {
            System.out.println(price / 2);
        } System.out.println(price / 2) System.out.println System.out System System.out price / 2 price 2 {
            System.out.println(0);
        } System.out.println(0) System.out.println System.out System System.out 0 String[] args args public class Main{

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

        // input
        int age = scan.nextInt();
        int price = scan.nextInt();

        // answer
        if(age >= 13){
            System.out.println(price);
        } else if (age >= 6){
            System.out.println(price / 2);
        } else {
            System.out.println(0);
        }

    }
} public class Main{

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

        // input
        int age = scan.nextInt();
        int price = scan.nextInt();

        // answer
        if(age >= 13){
            System.out.println(price);
        } else if (age >= 6){
            System.out.println(price / 2);
        } else {
            System.out.println(0);
        }

    }
} Main
import java.util.Scanner;
import java.util.Arrays;

public class Main{

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

        // input
        int age = scan.nextInt();
        int price = scan.nextInt();

        // answer
        if(age >= 13){
            System.out.println(price);
        } else if (age >= 6){
            System.out.println(price / 2);
        } else {
            System.out.println(0);
        }

    }
}