import java.util.Scanner;
import java.util.List;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.Arrays;
import java.util.Collections;
import java.util.*;
class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int A = scan.nextInt();
    int B = scan.nextInt();
    if (A >= 13) {
      System.out.println(B);
    }
    else if (A <= 5) {
      System.out.println(0);
    }
    else{
      B = B / 2;
      System.out.println(B);
    }
  }
} import java.util.Scanner; Scanner java.util import java.util.List; List java.util import java.util.ArrayList; ArrayList java.util import java.util.Comparator; Comparator java.util import java.util.Arrays; Arrays java.util import java.util.Collections; Collections java.util import java.util.*; util.* java class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int A = scan.nextInt();
    int B = scan.nextInt();
    if (A >= 13) {
      System.out.println(B);
    }
    else if (A <= 5) {
      System.out.println(0);
    }
    else{
      B = B / 2;
      System.out.println(B);
    }
  }
} Main public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int A = scan.nextInt();
    int B = scan.nextInt();
    if (A >= 13) {
      System.out.println(B);
    }
    else if (A <= 5) {
      System.out.println(0);
    }
    else{
      B = B / 2;
      System.out.println(B);
    }
  } main {
    Scanner scan = new Scanner(System.in);
    int A = scan.nextInt();
    int B = scan.nextInt();
    if (A >= 13) {
      System.out.println(B);
    }
    else if (A <= 5) {
      System.out.println(0);
    }
    else{
      B = B / 2;
      System.out.println(B);
    }
  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int A = scan.nextInt(); A scan.nextInt() scan.nextInt scan int B = scan.nextInt(); B scan.nextInt() scan.nextInt scan if (A >= 13) {
      System.out.println(B);
    }
    else if (A <= 5) {
      System.out.println(0);
    }
    else{
      B = B / 2;
      System.out.println(B);
    } A >= 13 A 13 {
      System.out.println(B);
    } System.out.println(B) System.out.println System.out System System.out B if (A <= 5) {
      System.out.println(0);
    }
    else{
      B = B / 2;
      System.out.println(B);
    } A <= 5 A 5 {
      System.out.println(0);
    } System.out.println(0) System.out.println System.out System System.out 0 {
      B = B / 2;
      System.out.println(B);
    } B = B / 2 B B / 2 B 2 System.out.println(B) System.out.println System.out System System.out B String[] args args
import java.util.Scanner;
import java.util.List;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.Arrays;
import java.util.Collections;
import java.util.*;
class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int A = scan.nextInt();
    int B = scan.nextInt();
    if (A >= 13) {
      System.out.println(B);
    }
    else if (A <= 5) {
      System.out.println(0);
    }
    else{
      B = B / 2;
      System.out.println(B);
    }
  }
}
