import java.util.*;
import java.io.*;

public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String inp[]= br.readLine().split(" ");
        int a= Integer.parseInt(inp[0]);
        int b= Integer.parseInt(inp[1]);
        if(a<=12 && a>=6)
        	b/=2;
        else
        	if(a<=5)
        		b=0;
        System.out.print(b);
	}
} import java.util.*; util.* java import java.io.*; io.* java public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String inp[]= br.readLine().split(" ");
        int a= Integer.parseInt(inp[0]);
        int b= Integer.parseInt(inp[1]);
        if(a<=12 && a>=6)
        	b/=2;
        else
        	if(a<=5)
        		b=0;
        System.out.print(b);
	}
} Main public static void main (String[] args) throws java.lang.Exception
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String inp[]= br.readLine().split(" ");
        int a= Integer.parseInt(inp[0]);
        int b= Integer.parseInt(inp[1]);
        if(a<=12 && a>=6)
        	b/=2;
        else
        	if(a<=5)
        		b=0;
        System.out.print(b);
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String inp[]= br.readLine().split(" ");
        int a= Integer.parseInt(inp[0]);
        int b= Integer.parseInt(inp[1]);
        if(a<=12 && a>=6)
        	b/=2;
        else
        	if(a<=5)
        		b=0;
        System.out.print(b);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String inp[]= br.readLine().split(" "); inp br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int a= Integer.parseInt(inp[0]); a Integer.parseInt(inp[0]) Integer.parseInt Integer inp[0] inp 0 int b= Integer.parseInt(inp[1]); b Integer.parseInt(inp[1]) Integer.parseInt Integer inp[1] inp 1 if(a<=12 && a>=6)
        	b/=2;
        else
        	if(a<=5)
        		b=0; a<=12 && a>=6 a<=12 a 12 a>=6 a 6 b/=2 b 2 if(a<=5)
        		b=0; a<=5 a 5 b=0 b 0 System.out.print(b) System.out.print System.out System System.out b String[] args args public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String inp[]= br.readLine().split(" ");
        int a= Integer.parseInt(inp[0]);
        int b= Integer.parseInt(inp[1]);
        if(a<=12 && a>=6)
        	b/=2;
        else
        	if(a<=5)
        		b=0;
        System.out.print(b);
	}
} public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String inp[]= br.readLine().split(" ");
        int a= Integer.parseInt(inp[0]);
        int b= Integer.parseInt(inp[1]);
        if(a<=12 && a>=6)
        	b/=2;
        else
        	if(a<=5)
        		b=0;
        System.out.print(b);
	}
} Main
import java.util.*;
import java.io.*;

public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String inp[]= br.readLine().split(" ");
        int a= Integer.parseInt(inp[0]);
        int b= Integer.parseInt(inp[1]);
        if(a<=12 && a>=6)
        	b/=2;
        else
        	if(a<=5)
        		b=0;
        System.out.print(b);
	}
}