import java.util.Scanner;
 
class Main {
  public static void main(String args[]) {
    Scanner scanner = new Scanner(System.in);
    int x = scanner.nextInt();
    int y = scanner.nextInt();
    
    if (x <= 5){
      System.out.print(0);
    }else if (x <= 12){
      System.out.print(y/2);
    }else{
      System.out.print(y);
    }
  }
} import java.util.Scanner; Scanner java.util class Main {
  public static void main(String args[]) {
    Scanner scanner = new Scanner(System.in);
    int x = scanner.nextInt();
    int y = scanner.nextInt();
    
    if (x <= 5){
      System.out.print(0);
    }else if (x <= 12){
      System.out.print(y/2);
    }else{
      System.out.print(y);
    }
  }
} Main public static void main(String args[]) {
    Scanner scanner = new Scanner(System.in);
    int x = scanner.nextInt();
    int y = scanner.nextInt();
    
    if (x <= 5){
      System.out.print(0);
    }else if (x <= 12){
      System.out.print(y/2);
    }else{
      System.out.print(y);
    }
  } main {
    Scanner scanner = new Scanner(System.in);
    int x = scanner.nextInt();
    int y = scanner.nextInt();
    
    if (x <= 5){
      System.out.print(0);
    }else if (x <= 12){
      System.out.print(y/2);
    }else{
      System.out.print(y);
    }
  } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int x = scanner.nextInt(); x scanner.nextInt() scanner.nextInt scanner int y = scanner.nextInt(); y scanner.nextInt() scanner.nextInt scanner if (x <= 5){
      System.out.print(0);
    }else if (x <= 12){
      System.out.print(y/2);
    }else{
      System.out.print(y);
    } x <= 5 x 5 {
      System.out.print(0);
    } System.out.print(0) System.out.print System.out System System.out 0 if (x <= 12){
      System.out.print(y/2);
    }else{
      System.out.print(y);
    } x <= 12 x 12 {
      System.out.print(y/2);
    } System.out.print(y/2) System.out.print System.out System System.out y/2 y 2 {
      System.out.print(y);
    } System.out.print(y) System.out.print System.out System System.out y String args[] args
import java.util.Scanner;
 
class Main {
  public static void main(String args[]) {
    Scanner scanner = new Scanner(System.in);
    int x = scanner.nextInt();
    int y = scanner.nextInt();
    
    if (x <= 5){
      System.out.print(0);
    }else if (x <= 12){
      System.out.print(y/2);
    }else{
      System.out.print(y);
    }
  }
}