import java.util.*;
public class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int y = sc.nextInt();

     if ( a>=6 && a<=12) {
       System.out.println(y / 2);
     }

     if (a <= 5) {
       System.out.println("0");
     }

     if (a >= 13) {
       System.out.println(y);
     }
  }
} 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 y = sc.nextInt();

     if ( a>=6 && a<=12) {
       System.out.println(y / 2);
     }

     if (a <= 5) {
       System.out.println("0");
     }

     if (a >= 13) {
       System.out.println(y);
     }
  }
} Main public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int y = sc.nextInt();

     if ( a>=6 && a<=12) {
       System.out.println(y / 2);
     }

     if (a <= 5) {
       System.out.println("0");
     }

     if (a >= 13) {
       System.out.println(y);
     }
  } main {
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int y = sc.nextInt();

     if ( a>=6 && a<=12) {
       System.out.println(y / 2);
     }

     if (a <= 5) {
       System.out.println("0");
     }

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

     if ( a>=6 && a<=12) {
       System.out.println(y / 2);
     }

     if (a <= 5) {
       System.out.println("0");
     }

     if (a >= 13) {
       System.out.println(y);
     }
  }
} public class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int y = sc.nextInt();

     if ( a>=6 && a<=12) {
       System.out.println(y / 2);
     }

     if (a <= 5) {
       System.out.println("0");
     }

     if (a >= 13) {
       System.out.println(y);
     }
  }
} Main
import java.util.*;
public class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int y = sc.nextInt();

     if ( a>=6 && a<=12) {
       System.out.println(y / 2);
     }

     if (a <= 5) {
       System.out.println("0");
     }

     if (a >= 13) {
       System.out.println(y);
     }
  }
}
