import java.util.*;

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

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