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();
    int ans[] = {b, b/2, 0};
    int i = 1;
    if (a >= 13){
      i--;
    }else if (a <= 5){
      i++;
    }
    System.out.println(ans[i]);
  }
} 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();
    int ans[] = {b, b/2, 0};
    int i = 1;
    if (a >= 13){
      i--;
    }else if (a <= 5){
      i++;
    }
    System.out.println(ans[i]);
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int ans[] = {b, b/2, 0};
    int i = 1;
    if (a >= 13){
      i--;
    }else if (a <= 5){
      i++;
    }
    System.out.println(ans[i]);
  } main {
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int ans[] = {b, b/2, 0};
    int i = 1;
    if (a >= 13){
      i--;
    }else if (a <= 5){
      i++;
    }
    System.out.println(ans[i]);
  } 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 int ans[] = {b, b/2, 0}; ans {b, b/2, 0} b b/2 b 2 0 int i = 1; i 1 if (a >= 13){
      i--;
    }else if (a <= 5){
      i++;
    } a >= 13 a 13 {
      i--;
    } i-- i if (a <= 5){
      i++;
    } a <= 5 a 5 {
      i++;
    } i++ i System.out.println(ans[i]) System.out.println System.out System System.out ans[i] ans i 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();
    int ans[] = {b, b/2, 0};
    int i = 1;
    if (a >= 13){
      i--;
    }else if (a <= 5){
      i++;
    }
    System.out.println(ans[i]);
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int ans[] = {b, b/2, 0};
    int i = 1;
    if (a >= 13){
      i--;
    }else if (a <= 5){
      i++;
    }
    System.out.println(ans[i]);
  }
} 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();
    int ans[] = {b, b/2, 0};
    int i = 1;
    if (a >= 13){
      i--;
    }else if (a <= 5){
      i++;
    }
    System.out.println(ans[i]);
  }
}
