                                        import  java.util.Scanner;
                               
                                        class Main{
                                        	public static void main(String[] args){
                                              Scanner sc = new Scanner(System.in);
                                              String str = "";
                                              str = sc.nextLine();
                                             //System.out.println(str);
                                               String[] str2 = str.split(" ");
                                              //System.out.println(str);
                                              //String[] str2;
                                              //str2 = new String[2];
                                              //str2 = str.split(" ");
                                              int num1 = Integer.parseInt(str2[0]);
                                               int num2 = Integer.parseInt(str2[1]);
                                                
                                               if(num1 >= 13){
                                                 System.out.println(String.valueOf(num2));
                                               }else if(num1 >= 6){
                                                 System.out.println(String.valueOf(num2/2));
                                               }else {
                                                 System.out.println(String.valueOf(0));
                                               }
                                            }
                                        } import  java.util.Scanner; Scanner java.util class Main{
                                        	public static void main(String[] args){
                                              Scanner sc = new Scanner(System.in);
                                              String str = "";
                                              str = sc.nextLine();
                                             //System.out.println(str);
                                               String[] str2 = str.split(" ");
                                              //System.out.println(str);
                                              //String[] str2;
                                              //str2 = new String[2];
                                              //str2 = str.split(" ");
                                              int num1 = Integer.parseInt(str2[0]);
                                               int num2 = Integer.parseInt(str2[1]);
                                                
                                               if(num1 >= 13){
                                                 System.out.println(String.valueOf(num2));
                                               }else if(num1 >= 6){
                                                 System.out.println(String.valueOf(num2/2));
                                               }else {
                                                 System.out.println(String.valueOf(0));
                                               }
                                            }
                                        } Main public static void main(String[] args){
                                              Scanner sc = new Scanner(System.in);
                                              String str = "";
                                              str = sc.nextLine();
                                             //System.out.println(str);
                                               String[] str2 = str.split(" ");
                                              //System.out.println(str);
                                              //String[] str2;
                                              //str2 = new String[2];
                                              //str2 = str.split(" ");
                                              int num1 = Integer.parseInt(str2[0]);
                                               int num2 = Integer.parseInt(str2[1]);
                                                
                                               if(num1 >= 13){
                                                 System.out.println(String.valueOf(num2));
                                               }else if(num1 >= 6){
                                                 System.out.println(String.valueOf(num2/2));
                                               }else {
                                                 System.out.println(String.valueOf(0));
                                               }
                                            } main {
                                              Scanner sc = new Scanner(System.in);
                                              String str = "";
                                              str = sc.nextLine();
                                             //System.out.println(str);
                                               String[] str2 = str.split(" ");
                                              //System.out.println(str);
                                              //String[] str2;
                                              //str2 = new String[2];
                                              //str2 = str.split(" ");
                                              int num1 = Integer.parseInt(str2[0]);
                                               int num2 = Integer.parseInt(str2[1]);
                                                
                                               if(num1 >= 13){
                                                 System.out.println(String.valueOf(num2));
                                               }else if(num1 >= 6){
                                                 System.out.println(String.valueOf(num2/2));
                                               }else {
                                                 System.out.println(String.valueOf(0));
                                               }
                                            } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = ""; str "" str = sc.nextLine() str sc.nextLine() sc.nextLine sc String[] str2 = str.split(" "); str2 str.split(" ") str.split str " " int num1 = Integer.parseInt(str2[0]); num1 Integer.parseInt(str2[0]) Integer.parseInt Integer str2[0] str2 0 int num2 = Integer.parseInt(str2[1]); num2 Integer.parseInt(str2[1]) Integer.parseInt Integer str2[1] str2 1 if(num1 >= 13){
                                                 System.out.println(String.valueOf(num2));
                                               }else if(num1 >= 6){
                                                 System.out.println(String.valueOf(num2/2));
                                               }else {
                                                 System.out.println(String.valueOf(0));
                                               } num1 >= 13 num1 13 {
                                                 System.out.println(String.valueOf(num2));
                                               } System.out.println(String.valueOf(num2)) System.out.println System.out System System.out String.valueOf(num2) String.valueOf String num2 if(num1 >= 6){
                                                 System.out.println(String.valueOf(num2/2));
                                               }else {
                                                 System.out.println(String.valueOf(0));
                                               } num1 >= 6 num1 6 {
                                                 System.out.println(String.valueOf(num2/2));
                                               } System.out.println(String.valueOf(num2/2)) System.out.println System.out System System.out String.valueOf(num2/2) String.valueOf String num2/2 num2 2 {
                                                 System.out.println(String.valueOf(0));
                                               } System.out.println(String.valueOf(0)) System.out.println System.out System System.out String.valueOf(0) String.valueOf String 0 String[] args args
                                        import  java.util.Scanner;
                               
                                        class Main{
                                        	public static void main(String[] args){
                                              Scanner sc = new Scanner(System.in);
                                              String str = "";
                                              str = sc.nextLine();
                                             //System.out.println(str);
                                               String[] str2 = str.split(" ");
                                              //System.out.println(str);
                                              //String[] str2;
                                              //str2 = new String[2];
                                              //str2 = str.split(" ");
                                              int num1 = Integer.parseInt(str2[0]);
                                               int num2 = Integer.parseInt(str2[1]);
                                                
                                               if(num1 >= 13){
                                                 System.out.println(String.valueOf(num2));
                                               }else if(num1 >= 6){
                                                 System.out.println(String.valueOf(num2/2));
                                               }else {
                                                 System.out.println(String.valueOf(0));
                                               }
                                            }
                                        }