import java.util.*;

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

} import java.util.*; util.* java public class Main{
	public static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
      	int years = scan.nextInt();
      	int money = scan.nextInt();
      	if(years >= 13){
        	System.out.print(money);
        }
      else if(years >= 6){
      		System.out.print(money / 2);
      }
      else if(years >= 0){
      		System.out.print(0);
      }
    }

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

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

} Main
import java.util.*;

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

}