
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      String[] nyu=sc.nextLine().split(" ");
   //  String nyu=sc.nextLine();

int A=Integer.parseInt(nyu[0]);
int B=Integer.parseInt(nyu[1]);

if(A>12){
System.out.println(B);
}else if(5<A && A<13){
System.out.println(B/2);
}else if(6>A){
System.out.println("0");
}
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      String[] nyu=sc.nextLine().split(" ");
   //  String nyu=sc.nextLine();

int A=Integer.parseInt(nyu[0]);
int B=Integer.parseInt(nyu[1]);

if(A>12){
System.out.println(B);
}else if(5<A && A<13){
System.out.println(B/2);
}else if(6>A){
System.out.println("0");
}
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      String[] nyu=sc.nextLine().split(" ");
   //  String nyu=sc.nextLine();

int A=Integer.parseInt(nyu[0]);
int B=Integer.parseInt(nyu[1]);

if(A>12){
System.out.println(B);
}else if(5<A && A<13){
System.out.println(B/2);
}else if(6>A){
System.out.println("0");
}
	} main {
		Scanner sc = new Scanner(System.in);
      String[] nyu=sc.nextLine().split(" ");
   //  String nyu=sc.nextLine();

int A=Integer.parseInt(nyu[0]);
int B=Integer.parseInt(nyu[1]);

if(A>12){
System.out.println(B);
}else if(5<A && A<13){
System.out.println(B/2);
}else if(6>A){
System.out.println("0");
}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] nyu=sc.nextLine().split(" "); nyu sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " int A=Integer.parseInt(nyu[0]); A Integer.parseInt(nyu[0]) Integer.parseInt Integer nyu[0] nyu 0 int B=Integer.parseInt(nyu[1]); B Integer.parseInt(nyu[1]) Integer.parseInt Integer nyu[1] nyu 1 if(A>12){
System.out.println(B);
}else if(5<A && A<13){
System.out.println(B/2);
}else if(6>A){
System.out.println("0");
} A>12 A 12 {
System.out.println(B);
} System.out.println(B) System.out.println System.out System System.out B if(5<A && A<13){
System.out.println(B/2);
}else if(6>A){
System.out.println("0");
} 5<A && A<13 5<A 5 A A<13 A 13 {
System.out.println(B/2);
} System.out.println(B/2) System.out.println System.out System System.out B/2 B 2 if(6>A){
System.out.println("0");
} 6>A 6 A {
System.out.println("0");
} System.out.println("0") System.out.println System.out System System.out "0" String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      String[] nyu=sc.nextLine().split(" ");
   //  String nyu=sc.nextLine();

int A=Integer.parseInt(nyu[0]);
int B=Integer.parseInt(nyu[1]);

if(A>12){
System.out.println(B);
}else if(5<A && A<13){
System.out.println(B/2);
}else if(6>A){
System.out.println("0");
}
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      String[] nyu=sc.nextLine().split(" ");
   //  String nyu=sc.nextLine();

int A=Integer.parseInt(nyu[0]);
int B=Integer.parseInt(nyu[1]);

if(A>12){
System.out.println(B);
}else if(5<A && A<13){
System.out.println(B/2);
}else if(6>A){
System.out.println("0");
}
	}
} Main

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      String[] nyu=sc.nextLine().split(" ");
   //  String nyu=sc.nextLine();

int A=Integer.parseInt(nyu[0]);
int B=Integer.parseInt(nyu[1]);

if(A>12){
System.out.println(B);
}else if(5<A && A<13){
System.out.println(B/2);
}else if(6>A){
System.out.println("0");
}
	}
}