import java.util.Scanner;
import java.util.InputMismatchException;

class Main {
   public static void main(String args[]) {
      int x=0 ,y=0;
      Scanner scanner = new Scanner(System.in);
      x = scanner.nextInt();
      y = scanner.nextInt();
      scanner.close();
      if (x>12) {
         System.out.println(y);
      } else if (x < 6) {
         System.out.println(0);
      } else {
         System.out.println(y/2);
      }

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

   }
} Main public static void main(String args[]) {
      int x=0 ,y=0;
      Scanner scanner = new Scanner(System.in);
      x = scanner.nextInt();
      y = scanner.nextInt();
      scanner.close();
      if (x>12) {
         System.out.println(y);
      } else if (x < 6) {
         System.out.println(0);
      } else {
         System.out.println(y/2);
      }

   } main {
      int x=0 ,y=0;
      Scanner scanner = new Scanner(System.in);
      x = scanner.nextInt();
      y = scanner.nextInt();
      scanner.close();
      if (x>12) {
         System.out.println(y);
      } else if (x < 6) {
         System.out.println(0);
      } else {
         System.out.println(y/2);
      }

   } int x=0 x 0 y=0; y 0 Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) x = scanner.nextInt() x scanner.nextInt() scanner.nextInt scanner y = scanner.nextInt() y scanner.nextInt() scanner.nextInt scanner scanner.close() scanner.close scanner if (x>12) {
         System.out.println(y);
      } else if (x < 6) {
         System.out.println(0);
      } else {
         System.out.println(y/2);
      } x>12 x 12 {
         System.out.println(y);
      } System.out.println(y) System.out.println System.out System System.out y if (x < 6) {
         System.out.println(0);
      } else {
         System.out.println(y/2);
      } x < 6 x 6 {
         System.out.println(0);
      } System.out.println(0) System.out.println System.out System System.out 0 {
         System.out.println(y/2);
      } System.out.println(y/2) System.out.println System.out System System.out y/2 y 2 String args[] args
import java.util.Scanner;
import java.util.InputMismatchException;

class Main {
   public static void main(String args[]) {
      int x=0 ,y=0;
      Scanner scanner = new Scanner(System.in);
      x = scanner.nextInt();
      y = scanner.nextInt();
      scanner.close();
      if (x>12) {
         System.out.println(y);
      } else if (x < 6) {
         System.out.println(0);
      } else {
         System.out.println(y/2);
      }

   }
}
