import java.util.*;
 
public class Main{
  public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    int a = scanner.nextInt();
    int b = scanner.nextInt();
    if (a >= 13) {
      System.out.println(b + "\n");
    } else if (a < 13 && a >= 6) {
      System.out.println((b / 2) + "\n");
    } else {
      System.out.println("0\n");
    }
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    int a = scanner.nextInt();
    int b = scanner.nextInt();
    if (a >= 13) {
      System.out.println(b + "\n");
    } else if (a < 13 && a >= 6) {
      System.out.println((b / 2) + "\n");
    } else {
      System.out.println("0\n");
    }
  }
} Main public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    int a = scanner.nextInt();
    int b = scanner.nextInt();
    if (a >= 13) {
      System.out.println(b + "\n");
    } else if (a < 13 && a >= 6) {
      System.out.println((b / 2) + "\n");
    } else {
      System.out.println("0\n");
    }
  } main {
    Scanner scanner = new Scanner(System.in);
    int a = scanner.nextInt();
    int b = scanner.nextInt();
    if (a >= 13) {
      System.out.println(b + "\n");
    } else if (a < 13 && a >= 6) {
      System.out.println((b / 2) + "\n");
    } else {
      System.out.println("0\n");
    }
  } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner int b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner if (a >= 13) {
      System.out.println(b + "\n");
    } else if (a < 13 && a >= 6) {
      System.out.println((b / 2) + "\n");
    } else {
      System.out.println("0\n");
    } a >= 13 a 13 {
      System.out.println(b + "\n");
    } System.out.println(b + "\n") System.out.println System.out System System.out b + "\n" b "\n" if (a < 13 && a >= 6) {
      System.out.println((b / 2) + "\n");
    } else {
      System.out.println("0\n");
    } a < 13 && a >= 6 a < 13 a 13 a >= 6 a 6 {
      System.out.println((b / 2) + "\n");
    } System.out.println((b / 2) + "\n") System.out.println System.out System System.out (b / 2) + "\n" (b / 2) b 2 "\n" {
      System.out.println("0\n");
    } System.out.println("0\n") System.out.println System.out System System.out "0\n" String[] args args public class Main{
  public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    int a = scanner.nextInt();
    int b = scanner.nextInt();
    if (a >= 13) {
      System.out.println(b + "\n");
    } else if (a < 13 && a >= 6) {
      System.out.println((b / 2) + "\n");
    } else {
      System.out.println("0\n");
    }
  }
} public class Main{
  public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    int a = scanner.nextInt();
    int b = scanner.nextInt();
    if (a >= 13) {
      System.out.println(b + "\n");
    } else if (a < 13 && a >= 6) {
      System.out.println((b / 2) + "\n");
    } else {
      System.out.println("0\n");
    }
  }
} Main
import java.util.*;
 
public class Main{
  public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    int a = scanner.nextInt();
    int b = scanner.nextInt();
    if (a >= 13) {
      System.out.println(b + "\n");
    } else if (a < 13 && a >= 6) {
      System.out.println((b / 2) + "\n");
    } else {
      System.out.println("0\n");
    }
  }
}