import java.util.*;

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

public class Main {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    int Age = sc.nextInt();
    int Fee = sc.nextInt();
    
    if(Age<6){
    	Fee=0;
    }else if(Age<13){
      Fee=Fee/2;
    }
    System.out.println(Fee);
  }
}
