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

public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner e = new Scanner(System.in);
		
		int a = e.nextInt();
		int b = e.nextInt();
		
		if(a <= 5)
		{
			System.out.println("0");
		}
		else if(a >= 13)
		{
			System.out.println(b);
		}
		else if(a >= 6 || a <= 12)
		{
			System.out.println(b / 2);
		}
	}
} import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner e = new Scanner(System.in);
		
		int a = e.nextInt();
		int b = e.nextInt();
		
		if(a <= 5)
		{
			System.out.println("0");
		}
		else if(a >= 13)
		{
			System.out.println(b);
		}
		else if(a >= 6 || a <= 12)
		{
			System.out.println(b / 2);
		}
	}
} Main public static void main (String[] args) throws java.lang.Exception
	{
		Scanner e = new Scanner(System.in);
		
		int a = e.nextInt();
		int b = e.nextInt();
		
		if(a <= 5)
		{
			System.out.println("0");
		}
		else if(a >= 13)
		{
			System.out.println(b);
		}
		else if(a >= 6 || a <= 12)
		{
			System.out.println(b / 2);
		}
	} main {
		Scanner e = new Scanner(System.in);
		
		int a = e.nextInt();
		int b = e.nextInt();
		
		if(a <= 5)
		{
			System.out.println("0");
		}
		else if(a >= 13)
		{
			System.out.println(b);
		}
		else if(a >= 6 || a <= 12)
		{
			System.out.println(b / 2);
		}
	} Scanner e = new Scanner(System.in); e new Scanner(System.in) int a = e.nextInt(); a e.nextInt() e.nextInt e int b = e.nextInt(); b e.nextInt() e.nextInt e if(a <= 5)
		{
			System.out.println("0");
		}
		else if(a >= 13)
		{
			System.out.println(b);
		}
		else if(a >= 6 || a <= 12)
		{
			System.out.println(b / 2);
		} a <= 5 a 5 {
			System.out.println("0");
		} System.out.println("0") System.out.println System.out System System.out "0" if(a >= 13)
		{
			System.out.println(b);
		}
		else if(a >= 6 || a <= 12)
		{
			System.out.println(b / 2);
		} a >= 13 a 13 {
			System.out.println(b);
		} System.out.println(b) System.out.println System.out System System.out b if(a >= 6 || a <= 12)
		{
			System.out.println(b / 2);
		} a >= 6 || a <= 12 a >= 6 a 6 a <= 12 a 12 {
			System.out.println(b / 2);
		} System.out.println(b / 2) System.out.println System.out System System.out b / 2 b 2 String[] args args public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner e = new Scanner(System.in);
		
		int a = e.nextInt();
		int b = e.nextInt();
		
		if(a <= 5)
		{
			System.out.println("0");
		}
		else if(a >= 13)
		{
			System.out.println(b);
		}
		else if(a >= 6 || a <= 12)
		{
			System.out.println(b / 2);
		}
	}
} public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner e = new Scanner(System.in);
		
		int a = e.nextInt();
		int b = e.nextInt();
		
		if(a <= 5)
		{
			System.out.println("0");
		}
		else if(a >= 13)
		{
			System.out.println(b);
		}
		else if(a >= 6 || a <= 12)
		{
			System.out.println(b / 2);
		}
	}
} Main
import java.util.*;
import java.lang.*;
import java.io.*;

public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner e = new Scanner(System.in);
		
		int a = e.nextInt();
		int b = e.nextInt();
		
		if(a <= 5)
		{
			System.out.println("0");
		}
		else if(a >= 13)
		{
			System.out.println(b);
		}
		else if(a >= 6 || a <= 12)
		{
			System.out.println(b / 2);
		}
	}
}