import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        // write your code here
        Scanner scan = new Scanner(System.in);
        String str = scan.nextLine();
        scan.close();
        String[] data = str.split(" ");
        int charge = 0;
        int age = 0;
        int price = 0;
            age = Integer.parseInt(data[0]);
            price = Integer.parseInt(data[1]);
        if ( 6 <= age && age <= 12) {
            charge = price / 2;
        } else if (age > 12 ) {
            charge = price;
        }
        System.out.println(charge);
        }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        // write your code here
        Scanner scan = new Scanner(System.in);
        String str = scan.nextLine();
        scan.close();
        String[] data = str.split(" ");
        int charge = 0;
        int age = 0;
        int price = 0;
            age = Integer.parseInt(data[0]);
            price = Integer.parseInt(data[1]);
        if ( 6 <= age && age <= 12) {
            charge = price / 2;
        } else if (age > 12 ) {
            charge = price;
        }
        System.out.println(charge);
        }
} Main public static void main(String[] args) {
        // write your code here
        Scanner scan = new Scanner(System.in);
        String str = scan.nextLine();
        scan.close();
        String[] data = str.split(" ");
        int charge = 0;
        int age = 0;
        int price = 0;
            age = Integer.parseInt(data[0]);
            price = Integer.parseInt(data[1]);
        if ( 6 <= age && age <= 12) {
            charge = price / 2;
        } else if (age > 12 ) {
            charge = price;
        }
        System.out.println(charge);
        } main {
        // write your code here
        Scanner scan = new Scanner(System.in);
        String str = scan.nextLine();
        scan.close();
        String[] data = str.split(" ");
        int charge = 0;
        int age = 0;
        int price = 0;
            age = Integer.parseInt(data[0]);
            price = Integer.parseInt(data[1]);
        if ( 6 <= age && age <= 12) {
            charge = price / 2;
        } else if (age > 12 ) {
            charge = price;
        }
        System.out.println(charge);
        } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String str = scan.nextLine(); str scan.nextLine() scan.nextLine scan scan.close() scan.close scan String[] data = str.split(" "); data str.split(" ") str.split str " " int charge = 0; charge 0 int age = 0; age 0 int price = 0; price 0 age = Integer.parseInt(data[0]) age Integer.parseInt(data[0]) Integer.parseInt Integer data[0] data 0 price = Integer.parseInt(data[1]) price Integer.parseInt(data[1]) Integer.parseInt Integer data[1] data 1 if ( 6 <= age && age <= 12) {
            charge = price / 2;
        } else if (age > 12 ) {
            charge = price;
        } 6 <= age && age <= 12 6 <= age 6 age age <= 12 age 12 {
            charge = price / 2;
        } charge = price / 2 charge price / 2 price 2 if (age > 12 ) {
            charge = price;
        } age > 12 age 12 {
            charge = price;
        } charge = price charge price System.out.println(charge) System.out.println System.out System System.out charge String[] args args public class Main {

    public static void main(String[] args) {
        // write your code here
        Scanner scan = new Scanner(System.in);
        String str = scan.nextLine();
        scan.close();
        String[] data = str.split(" ");
        int charge = 0;
        int age = 0;
        int price = 0;
            age = Integer.parseInt(data[0]);
            price = Integer.parseInt(data[1]);
        if ( 6 <= age && age <= 12) {
            charge = price / 2;
        } else if (age > 12 ) {
            charge = price;
        }
        System.out.println(charge);
        }
} public class Main {

    public static void main(String[] args) {
        // write your code here
        Scanner scan = new Scanner(System.in);
        String str = scan.nextLine();
        scan.close();
        String[] data = str.split(" ");
        int charge = 0;
        int age = 0;
        int price = 0;
            age = Integer.parseInt(data[0]);
            price = Integer.parseInt(data[1]);
        if ( 6 <= age && age <= 12) {
            charge = price / 2;
        } else if (age > 12 ) {
            charge = price;
        }
        System.out.println(charge);
        }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        // write your code here
        Scanner scan = new Scanner(System.in);
        String str = scan.nextLine();
        scan.close();
        String[] data = str.split(" ");
        int charge = 0;
        int age = 0;
        int price = 0;
            age = Integer.parseInt(data[0]);
            price = Integer.parseInt(data[1]);
        if ( 6 <= age && age <= 12) {
            charge = price / 2;
        } else if (age > 12 ) {
            charge = price;
        }
        System.out.println(charge);
        }
}