import java.util.*;

public class Main
{
    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();

        int v = sc.nextInt();
        if (a <= 5)
            v = 0;
        else if (a < 13)
            v /= 2;

        System.out.println(v);
    }
} import java.util.*; util.* java public class Main
{
    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();

        int v = sc.nextInt();
        if (a <= 5)
            v = 0;
        else if (a < 13)
            v /= 2;

        System.out.println(v);
    }
} Main public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();

        int v = sc.nextInt();
        if (a <= 5)
            v = 0;
        else if (a < 13)
            v /= 2;

        System.out.println(v);
    } main {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();

        int v = sc.nextInt();
        if (a <= 5)
            v = 0;
        else if (a < 13)
            v /= 2;

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

        int v = sc.nextInt();
        if (a <= 5)
            v = 0;
        else if (a < 13)
            v /= 2;

        System.out.println(v);
    }
} public class Main
{
    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();

        int v = sc.nextInt();
        if (a <= 5)
            v = 0;
        else if (a < 13)
            v /= 2;

        System.out.println(v);
    }
} Main
import java.util.*;

public class Main
{
    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();

        int v = sc.nextInt();
        if (a <= 5)
            v = 0;
        else if (a < 13)
            v /= 2;

        System.out.println(v);
    }
}
