import java.util.Scanner;
import java.util.List;
import java.util.ArrayList;
import java.util.Objects;

public class Main {
  public static void main(String[] args ){

    Scanner sc = new Scanner(System.in);

    int A = sc.nextInt();
    int B = sc.nextInt();

    int value = 0;
    if (A >= 13){
      value = B;
    } else if (A >= 6){
      value = B / 2;
    }
    System.out.println(value);
  }
} import java.util.Scanner; Scanner java.util import java.util.List; List java.util import java.util.ArrayList; ArrayList java.util import java.util.Objects; Objects 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 value = 0;
    if (A >= 13){
      value = B;
    } else if (A >= 6){
      value = B / 2;
    }
    System.out.println(value);
  }
} Main public static void main(String[] args ){

    Scanner sc = new Scanner(System.in);

    int A = sc.nextInt();
    int B = sc.nextInt();

    int value = 0;
    if (A >= 13){
      value = B;
    } else if (A >= 6){
      value = B / 2;
    }
    System.out.println(value);
  } main {

    Scanner sc = new Scanner(System.in);

    int A = sc.nextInt();
    int B = sc.nextInt();

    int value = 0;
    if (A >= 13){
      value = B;
    } else if (A >= 6){
      value = B / 2;
    }
    System.out.println(value);
  } 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 value = 0; value 0 if (A >= 13){
      value = B;
    } else if (A >= 6){
      value = B / 2;
    } A >= 13 A 13 {
      value = B;
    } value = B value B if (A >= 6){
      value = B / 2;
    } A >= 6 A 6 {
      value = B / 2;
    } value = B / 2 value B / 2 B 2 System.out.println(value) System.out.println System.out System System.out value 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 value = 0;
    if (A >= 13){
      value = B;
    } else if (A >= 6){
      value = B / 2;
    }
    System.out.println(value);
  }
} public class Main {
  public static void main(String[] args ){

    Scanner sc = new Scanner(System.in);

    int A = sc.nextInt();
    int B = sc.nextInt();

    int value = 0;
    if (A >= 13){
      value = B;
    } else if (A >= 6){
      value = B / 2;
    }
    System.out.println(value);
  }
} Main
import java.util.Scanner;
import java.util.List;
import java.util.ArrayList;
import java.util.Objects;

public class Main {
  public static void main(String[] args ){

    Scanner sc = new Scanner(System.in);

    int A = sc.nextInt();
    int B = sc.nextInt();

    int value = 0;
    if (A >= 13){
      value = B;
    } else if (A >= 6){
      value = B / 2;
    }
    System.out.println(value);
  }
}
