import java.util.*;

public class Main {

  public static void main(String args[]) {
    int rep = 1;
    if( args.length > 0 ) { rep = Integer.parseInt(args[0]); }
    (new Main()).__solve(rep);
  }

  void __solve(int rep) {

    try (
      Scanner cin = new Scanner(System.in);
    ) {

      for( int i = 0; i < rep; ++i ) {
        __solve(cin);
      }

    }

  }

  void __solve(Scanner cin) {
	  int A = cin.nextInt();
	  int B = cin.nextInt();
	  if( A >= 13 ) {
		  //;
	  }
	  if( 6 <= A && A <= 12 ) {
		  B /= 2;
	  }
	  if( A <= 5 ) {
		  B = 0;
	  }
	  System.out.println(B);
  }

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

  public static void main(String args[]) {
    int rep = 1;
    if( args.length > 0 ) { rep = Integer.parseInt(args[0]); }
    (new Main()).__solve(rep);
  }

  void __solve(int rep) {

    try (
      Scanner cin = new Scanner(System.in);
    ) {

      for( int i = 0; i < rep; ++i ) {
        __solve(cin);
      }

    }

  }

  void __solve(Scanner cin) {
	  int A = cin.nextInt();
	  int B = cin.nextInt();
	  if( A >= 13 ) {
		  //;
	  }
	  if( 6 <= A && A <= 12 ) {
		  B /= 2;
	  }
	  if( A <= 5 ) {
		  B = 0;
	  }
	  System.out.println(B);
  }

} Main public static void main(String args[]) {
    int rep = 1;
    if( args.length > 0 ) { rep = Integer.parseInt(args[0]); }
    (new Main()).__solve(rep);
  } main {
    int rep = 1;
    if( args.length > 0 ) { rep = Integer.parseInt(args[0]); }
    (new Main()).__solve(rep);
  } int rep = 1; rep 1 if( args.length > 0 ) { rep = Integer.parseInt(args[0]); } args.length > 0 args.length args args.length 0 { rep = Integer.parseInt(args[0]); } rep = Integer.parseInt(args[0]) rep Integer.parseInt(args[0]) Integer.parseInt Integer args[0] args 0 (new Main()).__solve(rep) (new Main()).__solve (new Main()) rep String args[] args void __solve(int rep) {

    try (
      Scanner cin = new Scanner(System.in);
    ) {

      for( int i = 0; i < rep; ++i ) {
        __solve(cin);
      }

    }

  } __solve {

    try (
      Scanner cin = new Scanner(System.in);
    ) {

      for( int i = 0; i < rep; ++i ) {
        __solve(cin);
      }

    }

  } try (
      Scanner cin = new Scanner(System.in);
    ) {

      for( int i = 0; i < rep; ++i ) {
        __solve(cin);
      }

    } {

      for( int i = 0; i < rep; ++i ) {
        __solve(cin);
      }

    } Scanner cin = new Scanner(System.in) Scanner cin = new Scanner(System.in) new Scanner(System.in) for( int i = 0; i < rep; ++i ) {
        __solve(cin);
      } int i = 0; int i = 0; i 0 i < rep i rep ++i ++i i {
        __solve(cin);
      } {
        __solve(cin);
      } __solve(cin) __solve cin int rep rep void __solve(Scanner cin) {
	  int A = cin.nextInt();
	  int B = cin.nextInt();
	  if( A >= 13 ) {
		  //;
	  }
	  if( 6 <= A && A <= 12 ) {
		  B /= 2;
	  }
	  if( A <= 5 ) {
		  B = 0;
	  }
	  System.out.println(B);
  } __solve {
	  int A = cin.nextInt();
	  int B = cin.nextInt();
	  if( A >= 13 ) {
		  //;
	  }
	  if( 6 <= A && A <= 12 ) {
		  B /= 2;
	  }
	  if( A <= 5 ) {
		  B = 0;
	  }
	  System.out.println(B);
  } int A = cin.nextInt(); A cin.nextInt() cin.nextInt cin int B = cin.nextInt(); B cin.nextInt() cin.nextInt cin if( A >= 13 ) {
		  //;
	  } A >= 13 A 13 {
		  //;
	  } if( 6 <= A && A <= 12 ) {
		  B /= 2;
	  } 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 Scanner cin cin public class Main {

  public static void main(String args[]) {
    int rep = 1;
    if( args.length > 0 ) { rep = Integer.parseInt(args[0]); }
    (new Main()).__solve(rep);
  }

  void __solve(int rep) {

    try (
      Scanner cin = new Scanner(System.in);
    ) {

      for( int i = 0; i < rep; ++i ) {
        __solve(cin);
      }

    }

  }

  void __solve(Scanner cin) {
	  int A = cin.nextInt();
	  int B = cin.nextInt();
	  if( A >= 13 ) {
		  //;
	  }
	  if( 6 <= A && A <= 12 ) {
		  B /= 2;
	  }
	  if( A <= 5 ) {
		  B = 0;
	  }
	  System.out.println(B);
  }

} public class Main {

  public static void main(String args[]) {
    int rep = 1;
    if( args.length > 0 ) { rep = Integer.parseInt(args[0]); }
    (new Main()).__solve(rep);
  }

  void __solve(int rep) {

    try (
      Scanner cin = new Scanner(System.in);
    ) {

      for( int i = 0; i < rep; ++i ) {
        __solve(cin);
      }

    }

  }

  void __solve(Scanner cin) {
	  int A = cin.nextInt();
	  int B = cin.nextInt();
	  if( A >= 13 ) {
		  //;
	  }
	  if( 6 <= A && A <= 12 ) {
		  B /= 2;
	  }
	  if( A <= 5 ) {
		  B = 0;
	  }
	  System.out.println(B);
  }

} Main
import java.util.*;

public class Main {

  public static void main(String args[]) {
    int rep = 1;
    if( args.length > 0 ) { rep = Integer.parseInt(args[0]); }
    (new Main()).__solve(rep);
  }

  void __solve(int rep) {

    try (
      Scanner cin = new Scanner(System.in);
    ) {

      for( int i = 0; i < rep; ++i ) {
        __solve(cin);
      }

    }

  }

  void __solve(Scanner cin) {
	  int A = cin.nextInt();
	  int B = cin.nextInt();
	  if( A >= 13 ) {
		  //;
	  }
	  if( 6 <= A && A <= 12 ) {
		  B /= 2;
	  }
	  if( A <= 5 ) {
		  B = 0;
	  }
	  System.out.println(B);
  }

}
