import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        // TODO code application logic here
        Scanner sc = new Scanner(System.in);
        int age = sc.nextInt();
        int price = sc.nextInt();
        if (age >= 13) {
            System.out.println(price);
        } else if (age <= 12 && age >= 6) {
            System.out.println(price / 2);
        } else {
            System.out.println(0);
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        // TODO code application logic here
        Scanner sc = new Scanner(System.in);
        int age = sc.nextInt();
        int price = sc.nextInt();
        if (age >= 13) {
            System.out.println(price);
        } else if (age <= 12 && age >= 6) {
            System.out.println(price / 2);
        } else {
            System.out.println(0);
        }
    }
} Main public static void main(String[] args) {
        // TODO code application logic here
        Scanner sc = new Scanner(System.in);
        int age = sc.nextInt();
        int price = sc.nextInt();
        if (age >= 13) {
            System.out.println(price);
        } else if (age <= 12 && age >= 6) {
            System.out.println(price / 2);
        } else {
            System.out.println(0);
        }
    } main {
        // TODO code application logic here
        Scanner sc = new Scanner(System.in);
        int age = sc.nextInt();
        int price = sc.nextInt();
        if (age >= 13) {
            System.out.println(price);
        } else if (age <= 12 && age >= 6) {
            System.out.println(price / 2);
        } else {
            System.out.println(0);
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int age = sc.nextInt(); age sc.nextInt() sc.nextInt sc int price = sc.nextInt(); price sc.nextInt() sc.nextInt sc if (age >= 13) {
            System.out.println(price);
        } else if (age <= 12 && 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 <= 12 && age >= 6) {
            System.out.println(price / 2);
        } else {
            System.out.println(0);
        } age <= 12 && age >= 6 age <= 12 age 12 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) {
        // TODO code application logic here
        Scanner sc = new Scanner(System.in);
        int age = sc.nextInt();
        int price = sc.nextInt();
        if (age >= 13) {
            System.out.println(price);
        } else if (age <= 12 && age >= 6) {
            System.out.println(price / 2);
        } else {
            System.out.println(0);
        }
    }
} public class Main {
    public static void main(String[] args) {
        // TODO code application logic here
        Scanner sc = new Scanner(System.in);
        int age = sc.nextInt();
        int price = sc.nextInt();
        if (age >= 13) {
            System.out.println(price);
        } else if (age <= 12 && age >= 6) {
            System.out.println(price / 2);
        } else {
            System.out.println(0);
        }
    }
} Main
import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        // TODO code application logic here
        Scanner sc = new Scanner(System.in);
        int age = sc.nextInt();
        int price = sc.nextInt();
        if (age >= 13) {
            System.out.println(price);
        } else if (age <= 12 && age >= 6) {
            System.out.println(price / 2);
        } else {
            System.out.println(0);
        }
    }
}
