import java.util.*;

public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
 
	if(A<=5){
      System.out.println("0");
    }else if(A>=6 && A<13){
     System.out.println(B/2);
    }else{
      System.out.println(B);
     }
}
} 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 B = sc.nextInt();
 
	if(A<=5){
      System.out.println("0");
    }else if(A>=6 && A<13){
     System.out.println(B/2);
    }else{
      System.out.println(B);
     }
}
} Main public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
 
	if(A<=5){
      System.out.println("0");
    }else if(A>=6 && A<13){
     System.out.println(B/2);
    }else{
      System.out.println(B);
     }
} main {
    
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
 
	if(A<=5){
      System.out.println("0");
    }else if(A>=6 && A<13){
     System.out.println(B/2);
    }else{
      System.out.println(B);
     }
} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int A = sc.nextInt(); A sc.nextInt() sc.nextInt sc int B = sc.nextInt(); B sc.nextInt() sc.nextInt sc if(A<=5){
      System.out.println("0");
    }else if(A>=6 && A<13){
     System.out.println(B/2);
    }else{
      System.out.println(B);
     } A<=5 A 5 {
      System.out.println("0");
    } System.out.println("0") System.out.println System.out System System.out "0" if(A>=6 && A<13){
     System.out.println(B/2);
    }else{
      System.out.println(B);
     } A>=6 && A<13 A>=6 A 6 A<13 A 13 {
     System.out.println(B/2);
    } System.out.println(B/2) System.out.println System.out System System.out B/2 B 2 {
      System.out.println(B);
     } System.out.println(B) System.out.println System.out System System.out B String[] args args public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
 
	if(A<=5){
      System.out.println("0");
    }else if(A>=6 && A<13){
     System.out.println(B/2);
    }else{
      System.out.println(B);
     }
}
} public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
 
	if(A<=5){
      System.out.println("0");
    }else if(A>=6 && A<13){
     System.out.println(B/2);
    }else{
      System.out.println(B);
     }
}
} Main
import java.util.*;

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