import java.util.*;
import java.lang.*;
import java.io.*;

public class Main{
public static void main (String[] args){
	Scanner sc = new Scanner(System.in);
	int years = sc.nextInt();
	int fee = sc.nextInt();
	if(years < 6){
		fee = 0;
	}else if(years < 13 && years >= 6){
		fee = fee/2;
	}
	System.out.println(fee);
}
} import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java public class Main{
public static void main (String[] args){
	Scanner sc = new Scanner(System.in);
	int years = sc.nextInt();
	int fee = sc.nextInt();
	if(years < 6){
		fee = 0;
	}else if(years < 13 && years >= 6){
		fee = fee/2;
	}
	System.out.println(fee);
}
} Main public static void main (String[] args){
	Scanner sc = new Scanner(System.in);
	int years = sc.nextInt();
	int fee = sc.nextInt();
	if(years < 6){
		fee = 0;
	}else if(years < 13 && years >= 6){
		fee = fee/2;
	}
	System.out.println(fee);
} main {
	Scanner sc = new Scanner(System.in);
	int years = sc.nextInt();
	int fee = sc.nextInt();
	if(years < 6){
		fee = 0;
	}else if(years < 13 && years >= 6){
		fee = fee/2;
	}
	System.out.println(fee);
} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int years = sc.nextInt(); years sc.nextInt() sc.nextInt sc int fee = sc.nextInt(); fee sc.nextInt() sc.nextInt sc if(years < 6){
		fee = 0;
	}else if(years < 13 && years >= 6){
		fee = fee/2;
	} years < 6 years 6 {
		fee = 0;
	} fee = 0 fee 0 if(years < 13 && years >= 6){
		fee = fee/2;
	} years < 13 && years >= 6 years < 13 years 13 years >= 6 years 6 {
		fee = fee/2;
	} fee = fee/2 fee fee/2 fee 2 System.out.println(fee) System.out.println System.out System System.out fee String[] args args public class Main{
public static void main (String[] args){
	Scanner sc = new Scanner(System.in);
	int years = sc.nextInt();
	int fee = sc.nextInt();
	if(years < 6){
		fee = 0;
	}else if(years < 13 && years >= 6){
		fee = fee/2;
	}
	System.out.println(fee);
}
} public class Main{
public static void main (String[] args){
	Scanner sc = new Scanner(System.in);
	int years = sc.nextInt();
	int fee = sc.nextInt();
	if(years < 6){
		fee = 0;
	}else if(years < 13 && years >= 6){
		fee = fee/2;
	}
	System.out.println(fee);
}
} Main
import java.util.*;
import java.lang.*;
import java.io.*;

public class Main{
public static void main (String[] args){
	Scanner sc = new Scanner(System.in);
	int years = sc.nextInt();
	int fee = sc.nextInt();
	if(years < 6){
		fee = 0;
	}else if(years < 13 && years >= 6){
		fee = fee/2;
	}
	System.out.println(fee);
}
}
