import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String[] input = scanner.nextLine().split(" ");
        int age = Integer.valueOf(input[0]);
        int value = Integer.valueOf(input[1]);
        int cost = value;

        if (age <= 5) {
            cost = 0;
        } else if ( age >= 6 && age <= 12) {
            cost = value / 2;
        }

        System.out.println(cost);

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

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String[] input = scanner.nextLine().split(" ");
        int age = Integer.valueOf(input[0]);
        int value = Integer.valueOf(input[1]);
        int cost = value;

        if (age <= 5) {
            cost = 0;
        } else if ( age >= 6 && age <= 12) {
            cost = value / 2;
        }

        System.out.println(cost);

    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String[] input = scanner.nextLine().split(" ");
        int age = Integer.valueOf(input[0]);
        int value = Integer.valueOf(input[1]);
        int cost = value;

        if (age <= 5) {
            cost = 0;
        } else if ( age >= 6 && age <= 12) {
            cost = value / 2;
        }

        System.out.println(cost);

    } main {
        Scanner scanner = new Scanner(System.in);
        String[] input = scanner.nextLine().split(" ");
        int age = Integer.valueOf(input[0]);
        int value = Integer.valueOf(input[1]);
        int cost = value;

        if (age <= 5) {
            cost = 0;
        } else if ( age >= 6 && age <= 12) {
            cost = value / 2;
        }

        System.out.println(cost);

    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String[] input = scanner.nextLine().split(" "); input scanner.nextLine().split(" ") scanner.nextLine().split scanner.nextLine() scanner.nextLine scanner " " int age = Integer.valueOf(input[0]); age Integer.valueOf(input[0]) Integer.valueOf Integer input[0] input 0 int value = Integer.valueOf(input[1]); value Integer.valueOf(input[1]) Integer.valueOf Integer input[1] input 1 int cost = value; cost value if (age <= 5) {
            cost = 0;
        } else if ( age >= 6 && age <= 12) {
            cost = value / 2;
        } age <= 5 age 5 {
            cost = 0;
        } cost = 0 cost 0 if ( age >= 6 && age <= 12) {
            cost = value / 2;
        } age >= 6 && age <= 12 age >= 6 age 6 age <= 12 age 12 {
            cost = value / 2;
        } cost = value / 2 cost value / 2 value 2 System.out.println(cost) System.out.println System.out System System.out cost String[] args args public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String[] input = scanner.nextLine().split(" ");
        int age = Integer.valueOf(input[0]);
        int value = Integer.valueOf(input[1]);
        int cost = value;

        if (age <= 5) {
            cost = 0;
        } else if ( age >= 6 && age <= 12) {
            cost = value / 2;
        }

        System.out.println(cost);

    }
} public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String[] input = scanner.nextLine().split(" ");
        int age = Integer.valueOf(input[0]);
        int value = Integer.valueOf(input[1]);
        int cost = value;

        if (age <= 5) {
            cost = 0;
        } else if ( age >= 6 && age <= 12) {
            cost = value / 2;
        }

        System.out.println(cost);

    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String[] input = scanner.nextLine().split(" ");
        int age = Integer.valueOf(input[0]);
        int value = Integer.valueOf(input[1]);
        int cost = value;

        if (age <= 5) {
            cost = 0;
        } else if ( age >= 6 && age <= 12) {
            cost = value / 2;
        }

        System.out.println(cost);

    }
}