import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int age = sc.nextInt();
        int fee = sc.nextInt();
        int result = 0;
        if (age <= 5) {
            result = 0;
        } else if (age <= 12) {
            result = fee / 2;
        } else {
            result = fee;
        }
        System.out.println(result);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int age = sc.nextInt();
        int fee = sc.nextInt();
        int result = 0;
        if (age <= 5) {
            result = 0;
        } else if (age <= 12) {
            result = fee / 2;
        } else {
            result = fee;
        }
        System.out.println(result);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int age = sc.nextInt();
        int fee = sc.nextInt();
        int result = 0;
        if (age <= 5) {
            result = 0;
        } else if (age <= 12) {
            result = fee / 2;
        } else {
            result = fee;
        }
        System.out.println(result);
    } main {
        Scanner sc = new Scanner(System.in);
        int age = sc.nextInt();
        int fee = sc.nextInt();
        int result = 0;
        if (age <= 5) {
            result = 0;
        } else if (age <= 12) {
            result = fee / 2;
        } else {
            result = fee;
        }
        System.out.println(result);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int age = sc.nextInt(); age sc.nextInt() sc.nextInt sc int fee = sc.nextInt(); fee sc.nextInt() sc.nextInt sc int result = 0; result 0 if (age <= 5) {
            result = 0;
        } else if (age <= 12) {
            result = fee / 2;
        } else {
            result = fee;
        } age <= 5 age 5 {
            result = 0;
        } result = 0 result 0 if (age <= 12) {
            result = fee / 2;
        } else {
            result = fee;
        } age <= 12 age 12 {
            result = fee / 2;
        } result = fee / 2 result fee / 2 fee 2 {
            result = fee;
        } result = fee result fee System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int age = sc.nextInt();
        int fee = sc.nextInt();
        int result = 0;
        if (age <= 5) {
            result = 0;
        } else if (age <= 12) {
            result = fee / 2;
        } else {
            result = fee;
        }
        System.out.println(result);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int age = sc.nextInt();
        int fee = sc.nextInt();
        int result = 0;
        if (age <= 5) {
            result = 0;
        } else if (age <= 12) {
            result = fee / 2;
        } else {
            result = fee;
        }
        System.out.println(result);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int age = sc.nextInt();
        int fee = sc.nextInt();
        int result = 0;
        if (age <= 5) {
            result = 0;
        } else if (age <= 12) {
            result = fee / 2;
        } else {
            result = fee;
        }
        System.out.println(result);
    }
}