import java.util.Scanner;

public class Main {

  public static void main(String args[]) {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();

    int toshi = 13;
    int toshi2 = 5;
    int kakaku = 0;

    if (A >= toshi) {
    	kakaku = B;
    } else if (A < toshi && A > toshi2){
    	kakaku =  B/2;
    }

    System.out.println(kakaku);

  }

} import java.util.Scanner; Scanner 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 toshi = 13;
    int toshi2 = 5;
    int kakaku = 0;

    if (A >= toshi) {
    	kakaku = B;
    } else if (A < toshi && A > toshi2){
    	kakaku =  B/2;
    }

    System.out.println(kakaku);

  }

} Main public static void main(String args[]) {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();

    int toshi = 13;
    int toshi2 = 5;
    int kakaku = 0;

    if (A >= toshi) {
    	kakaku = B;
    } else if (A < toshi && A > toshi2){
    	kakaku =  B/2;
    }

    System.out.println(kakaku);

  } main {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();

    int toshi = 13;
    int toshi2 = 5;
    int kakaku = 0;

    if (A >= toshi) {
    	kakaku = B;
    } else if (A < toshi && A > toshi2){
    	kakaku =  B/2;
    }

    System.out.println(kakaku);

  } 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 toshi = 13; toshi 13 int toshi2 = 5; toshi2 5 int kakaku = 0; kakaku 0 if (A >= toshi) {
    	kakaku = B;
    } else if (A < toshi && A > toshi2){
    	kakaku =  B/2;
    } A >= toshi A toshi {
    	kakaku = B;
    } kakaku = B kakaku B if (A < toshi && A > toshi2){
    	kakaku =  B/2;
    } A < toshi && A > toshi2 A < toshi A toshi A > toshi2 A toshi2 {
    	kakaku =  B/2;
    } kakaku =  B/2 kakaku B/2 B 2 System.out.println(kakaku) System.out.println System.out System System.out kakaku 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 toshi = 13;
    int toshi2 = 5;
    int kakaku = 0;

    if (A >= toshi) {
    	kakaku = B;
    } else if (A < toshi && A > toshi2){
    	kakaku =  B/2;
    }

    System.out.println(kakaku);

  }

} public class Main {

  public static void main(String args[]) {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();

    int toshi = 13;
    int toshi2 = 5;
    int kakaku = 0;

    if (A >= toshi) {
    	kakaku = B;
    } else if (A < toshi && A > toshi2){
    	kakaku =  B/2;
    }

    System.out.println(kakaku);

  }

} Main
import java.util.Scanner;

public class Main {

  public static void main(String args[]) {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();

    int toshi = 13;
    int toshi2 = 5;
    int kakaku = 0;

    if (A >= toshi) {
    	kakaku = B;
    } else if (A < toshi && A > toshi2){
    	kakaku =  B/2;
    }

    System.out.println(kakaku);

  }

}