
import java.util.Scanner;

/**
 * @author author
 *
 */
public class Main {

  /**
   * @param args
   */
  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    int a = Integer.parseInt(sc.next());
    int b = Integer.parseInt(sc.next());
    

    if (6 <= a && a <= 12) {
      b /= 2;
    }
    else if (a <=5) {
      b = 0;
    }

    System.out.println(b);
    
  }

} import java.util.Scanner; Scanner java.util public class Main {

  /**
   * @param args
   */
  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    int a = Integer.parseInt(sc.next());
    int b = Integer.parseInt(sc.next());
    

    if (6 <= a && a <= 12) {
      b /= 2;
    }
    else if (a <=5) {
      b = 0;
    }

    System.out.println(b);
    
  }

} Main /**
   * @param args
   */
  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    int a = Integer.parseInt(sc.next());
    int b = Integer.parseInt(sc.next());
    

    if (6 <= a && a <= 12) {
      b /= 2;
    }
    else if (a <=5) {
      b = 0;
    }

    System.out.println(b);
    
  } main {

    Scanner sc = new Scanner(System.in);
    int a = Integer.parseInt(sc.next());
    int b = Integer.parseInt(sc.next());
    

    if (6 <= a && a <= 12) {
      b /= 2;
    }
    else if (a <=5) {
      b = 0;
    }

    System.out.println(b);
    
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = Integer.parseInt(sc.next()); a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int b = Integer.parseInt(sc.next()); b Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc if (6 <= a && a <= 12) {
      b /= 2;
    }
    else if (a <=5) {
      b = 0;
    } 6 <= a && a <= 12 6 <= a 6 a a <= 12 a 12 {
      b /= 2;
    } b /= 2 b 2 if (a <=5) {
      b = 0;
    } a <=5 a 5 {
      b = 0;
    } b = 0 b 0 System.out.println(b) System.out.println System.out System System.out b String[] args args public class Main {

  /**
   * @param args
   */
  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    int a = Integer.parseInt(sc.next());
    int b = Integer.parseInt(sc.next());
    

    if (6 <= a && a <= 12) {
      b /= 2;
    }
    else if (a <=5) {
      b = 0;
    }

    System.out.println(b);
    
  }

} public class Main {

  /**
   * @param args
   */
  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    int a = Integer.parseInt(sc.next());
    int b = Integer.parseInt(sc.next());
    

    if (6 <= a && a <= 12) {
      b /= 2;
    }
    else if (a <=5) {
      b = 0;
    }

    System.out.println(b);
    
  }

} Main

import java.util.Scanner;

/**
 * @author author
 *
 */
public class Main {

  /**
   * @param args
   */
  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    int a = Integer.parseInt(sc.next());
    int b = Integer.parseInt(sc.next());
    

    if (6 <= a && a <= 12) {
      b /= 2;
    }
    else if (a <=5) {
      b = 0;
    }

    System.out.println(b);
    
  }

}
