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

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

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

   }
   
 } main {
   Scanner sc = new Scanner(System.in);
   int t_y = sc.nextInt();
   int num = sc.nextInt();
   
   
   if(t_y<=5){
    System.out.println(0);
   }
   else if(t_y<=12)
    {
    System.out.println(num/2);     
    }
   else
   {
    System.out.println(num);

   }
   
 } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int t_y = sc.nextInt(); t_y sc.nextInt() sc.nextInt sc int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc if(t_y<=5){
    System.out.println(0);
   }
   else if(t_y<=12)
    {
    System.out.println(num/2);     
    }
   else
   {
    System.out.println(num);

   } t_y<=5 t_y 5 {
    System.out.println(0);
   } System.out.println(0) System.out.println System.out System System.out 0 if(t_y<=12)
    {
    System.out.println(num/2);     
    }
   else
   {
    System.out.println(num);

   } t_y<=12 t_y 12 {
    System.out.println(num/2);     
    } System.out.println(num/2) System.out.println System.out System System.out num/2 num 2 {
    System.out.println(num);

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

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

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

   }
   
 }
}